Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Sync Sqlite data to sql server using Cordova

Hi from so many days im searching about this topic but unable to get a hint also. if any one know how to sync sqlite data to sql server using cordova and javascript please help out

like image 532
Madpop Avatar asked Feb 08 '17 13:02

Madpop


People also ask

How to use Cordova plugin in SQLite?

To Fetch values into Database Table in sqlite using Cordova plugin. In this method we fetch data from the database by using select query and using res.rows.item () we are displaying the database values in alert boxes. To Drop Table into Database in sqlite using Cordova plugin. To Update values into Database Table in sqlite using Cordova plugin.

How do I connect to a SQLite database from another database?

These are the steps we will follow: Download an ODBC driver for SQLite. Install the driver. Create a System DSN for the database. Create a linked server in SQL Server. Select the data from the source and insert it into a SQL Server database table.

Can I import data from a SQLite database on mobile devices?

You have data in SQLite databases on mobile devices you would like to import into SQL Server. In this tip we walk through the steps on how to import this data into SQL Server.

Why use CDATA sync for SQLite replication?

Use CData Sync for automated, continuous, customizable SQLite replication to SQL Server. Always-on applications rely on automatic failover capabilities and real-time data access.


1 Answers

Open source implementations

There are some open source projects for syncing the PhoneGap app with the remote server. But you will have to adjust/implement to fit your project.

Synchronize a local WebSQL Db to a server

Couchbase Lite PhoneGap plugin

Pouchdb

Alternativly, custom API

You could create your own set of API methods to send / update data from the WebSQL to your remote server DB. Flagging records that need to 'sync' to the external server. But you'll have to take measurements for a large bit of logics if the sync process is 2 way (central server - app - central server).

Since your question limits the amount of information it's hard to help out with more detailed information in this stage.

like image 170
daan.desmedt Avatar answered Oct 06 '22 00:10

daan.desmedt