简体   繁体   中英

How to sync database with electronjs

I would like to use electronjs to develop a desktop application. The app has to have an offline and online database, such that when the system connects to the Internet, the databases can sync.. How can I achieve this please. Using nodejs to develop apis

Sure, you can do that with sqlite database or pouchDB. If you don't want to write long queries for sqlite then you can use Prisma sqlite . then after just store it in the local database (sqlite or pouchDB) whenever the system is offline. and whenever the system will become online post the last data to your SQL/Postgres/Mongo server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM