Synchronize a local WebSQL / IndexedDB database with a "pre-created" database file?

Is there any plan to download (or synchronize) with a “pre-built” database file, so to speak, for use with a local web browser database such as WebSQL or IndexedDB?

Currently, to add or update a local database, you need to export or store data in a format such as XML or JSON, then retrieve, parse, and save the data.

+3
source share
1 answer

I get the impression that what you're looking for is reinstalling too much on the browser side. As far as I understand, IndexedDB should be simple and strong enough so that someone can write JavaScript code that makes synchronization with your database server of your choice.

In the meantime, you can take a look at these projects:

  • PouchDB - Implement CouchDB on top of IndexedDB. One of the premises is to provide the same synchronization (master-to-mastes) of the decentralized capabilities of CouchDB in the browser.
  • BrowserCouch is a similar project, but using WebSQL as a browser repository.
+3
source

All Articles