Where are the node-webkit database files stored?

I just started working with Node -webkit and I think this is great.

I installed db using the "Web SQL Database" option mentioned here and it seems to work fine. Very similar to Sqlite, which I'm a little familiar with.

In the docs, this is implemented using sqlite, so I would like to find the actual db file created on disk and look at it using a Sqlite editor such as sqliteman.

Where is the db file stored?

I could not find it in the documents, or by search query; -)

+4
source share
2 answers

node -webkit 0.6.1, dataPath App. WebSQL databases.

Wiki: https://github.com/rogerwang/node-webkit/wiki/App

.
Windows:% LOCALAPPDATA%/;
Linux: ~/.config/;
OSX: ~/Library/ / .


:

require('nw.gui').App.dataPath;
+9

mac, Sloth, , ... GUI- lsof ( )

:

~/Library/ /YOUR _APP_NAME/databases/file__0/

sqlite db !

+2

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


All Articles