How to sync Sqlite data with sql server using Cordova

Hi from many days when I was looking for this topic, but could not get a hint. if anyone knows how to sync sqlite data with sql server using cordova and javascript please help

+6
source share
1 answer

Open source implementations

There are several open source projects for synchronizing the PhoneGap application with a remote server. But you will have to adapt / implement to fit your project.

Synchronize local WebSQL Db with server

Couchbase Lite PhoneGap Plugin

Pouchdb

Alternatively, user API

You can create your own set of API methods for sending / updating data from WebSQL to your remote DB server. Flagging entries that need to be "synchronized" with an external server. But you will have to take measurements for a large number of logics if the synchronization process has 2 paths (central server - application - central server).

Since your question limits the amount of information that is difficult to handle with more detailed information at this stage.

+2
source

Source: https://habr.com/ru/post/1014798/


All Articles