function in simulator removing tables from db?

I am running the simulator and within that I create and populate several tables. This function is contained in viewDidLoad().

it creates and loads the tables fine.

When I try to access the db tables from another function it looks as though the tables were never created.

Can I create the tables and have them persist throughout the app?

I am sqlite and fmdb.

i you can help and I can povide more information.


Thanks

Replies

The first step in debugging something like this is to confirm whether the data actually made it to disk. Fortunately this is easy in the simulator. If you run the

sqlite3
tool against your database, does it see the changes you made?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Could you show code for creation and for later access.


it looks as though the tables were never created.

What do you get exactly ?


In fact as Eskimo said, data persist on disk.