I can copy a prebuild Database into my mobile sdk using Database.copy but I want to import a db which I will fetch from my server. What will be the behavior if I copy on my existing db, will it replace the db or import the data ?
I believe the
copy method fails if the destination already exists.
You could open the downloaded db file and then do a local-to-local replication to push its contents to your main database. But by doing this you’re basically duplicating what the replicator does.