Infinite Possibilities
Infinite Possibilities

Reputation: 7476

RhoMobile initial database

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?

Upvotes: 0

Views: 599

Answers (1)

Geoffrey
Geoffrey

Reputation: 562

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.

Upvotes: 1

Related Questions