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
Thanks all! This is wonderful! I have a similar but a little different use case. Bottom line, I don’t want to use watermelondb for anything other than their Sync module. So I want to bring my SQLite database with my own schema etc created outside of watermelon and simply want to call the Sync module functions. Is this something I can do by following these instructions to add the extra columns to my tables so that watermelon then can handle the push / pull sync methods? Thanks!