This is something thats puzzled me when developing in flash…
I would go to lengths as to check for a specific table names/data before I could make a decision on if a database had already been created
so in corona to both “open” and “create” a sqlite database you would do somthing like the below…
[lua]local path = system.pathForFile( “data.db”, system.DocumentsDirectory)
local db = sqlite3.open( path )[/lua]
But how would I check to see if a database already existed so that I know if im working with a empty database or one with some data init?
Thanks
Aidan [import]uid: 102413 topic_id: 26102 reply_id: 326102[/import]
