This is the basic structure I'm using in an app.
getDatabasePath
will handle any detail on unzip, copy, etc,
index
will do all the usual dirty work, including withDatabase
that won't explode if the database
is missing
WatermelonProvider
to cover original one til the DB is ready
@Stophface @devnrj07 long story short, I created a node script that includes the same classes of the database and run all the import commands. After populating the DB, it already copy the files to the assets folders.
As I use WatermelonSync, I just use the sync method, but is just like batch prepareCreate statements.
Note that I create the DB from scratch every time.