The best DB for Electron


#1

Hi,

I turned to Electron as it seems to solve all painful issues I face while developing my desktop application. However there are two general things I am struggling with since I am pretty new to this environment.

I would like to create application which saves data (text and files) to db. Data should be later synchronized to some remote backup. There should be not required any additional step while installing application to set up db.

I found one solution which seemed to be good one for me. PouchDB could solve all my pain but the issue here is with way data is storaged. Using SQLite is quite difficult and I could not do in while playing with it under Windows or Linux.

Could you perhaps point me where I could read or learn more about DB usage in Electron?


#2

Somehow following sequence solved my issue:

cd node_modules/sqlite3
npm install nan
npm run prepublish && node-gyp configure --module_name=node_sqlite3 --module_path=…/lib/binding/electron-v1.4-win32-x64 && node-gyp rebuild --target=1.4.13 --arch=x64 --target_platform=win32 --dist-url=https