iOS Question Using SQLite

ThePuiu

Active Member
Licensed User
Longtime User
I'm trying to read records from a a local SQLite database.
In the simulator goes, but on the iPhone does not, the error message is "Database file not found."

Someone can help me with a small example ("a good practice guide"), how to check if there is a database or otherwise how to copy it.

Used code:
B4X:
If mySQL.IsInitialized = False Then
        mySQL.Initialize(File.DirDocuments, "database.db3", False)
    End If

database.db3 file is on Files folder.
Thank you!
 

ThePuiu

Active Member
Licensed User
Longtime User
Also related to this topic ... if the structure or content of the database changed, how to be copied instead of the old one? (without deleting the old one manually)
 
Upvote 0
Top