Is there a way to setup initial data in a database when using RhoMobile framework? It is using sqlite database as I see. Is there a way to add a preset sqlite file to the project and make it built in the application bundle?
Asked
Active
Viewed 597 times
0
-
Please follow [this](http://stackoverflow.com/questions/10631406/create-seed-data-in-rhomobile/13320316#13320316) for recent changes and exact answer – Sivanand Kheti Nov 10 '12 at 12:44
1 Answers
1
You can seed the database with a flat file containing the initial data, through the use of the Rho::RhoUtils.load_offline_data
method. Full documentation here.

Geoffrey
- 562
- 4
- 9
-
Great, I'm thinking of doing exactly the same thing. My question is, at what point do you use the load_offline_data method so the seeded database is available when the application is built? – digitalWestie May 30 '12 at 16:03