Reading and writing to a local sqlite database fro

2020-07-17 05:03发布

问题:

Is it possible to read and write to a local sqlite file from a chrome packaged app? I currently already read and write to a json file with app data that is locally stored on the harddrive but I also want to be able to do this with a sqlite database. I need it to be local and not on drive since I will interact with it from other (non chrome) processes as well. And even loading the file from drive (using sync filesystem instead of filesystem), I have no clue how to go about accessing a sqlite file

回答1:

SQLite support for Chrome Packaged Apps would be great. After all, Chrome on the desktop and on Android supports it.

But it doesn't. There is an open issue for it - join in!

https://code.google.com/p/chromium/issues/detail?id=339579