Created
July 21, 2011 14:40
-
-
Save oroce/1097327 to your computer and use it in GitHub Desktop.
sqlite db connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
this file is in Resources/tabs/search.js | |
and the sqlite file is in Resources/db/imenetrend_new.sqlite | |
the database is called as "main" | |
*/ | |
var db = Ti.Database.install( "../db/imenetrend_new.sqlite", "main" ), | |
letters = ( letters||"" ) + "%"; | |
var rows = db.execute( "SELECT * FROM stations WHERE station_deaccent LIKE ? LIMIT 50", letters ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment