Where are node-webkit database files stored?

本小妞迷上赌 提交于 2019-12-05 14:43:26

Since node-webkit version 0.6.1, you may retrieve the dataPath from the App object. The WebSQL files will be stored within the databases folder.

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

Get the application's data path in user's directory.
Windows: %LOCALAPPDATA%/;
Linux: ~/.config/;
OSX: ~/Library/Application Support/ where is the field in the manifest.


Example:

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

I'm on a mac, and I used the tool Sloth to see the files that are opened by an application... Basically it's a GUI version of the command line lsof (list open files)

It pointed me to the following path:

~/Library/Application Support/YOUR_APP_NAME/databases/file__0/

and the sqlite db file was in there!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!