从Chrome打包应用读取和写入本地sqlite数据库 [英] Reading and writing to a local sqlite database from a Chrome packaged app
问题描述
是否可以从chrome打包的应用程序读取和写入本地sqlite文件?我目前已经读取并写入一个json文件,其中包含本地存储在硬盘上的应用程序数据,但我也希望能够通过sqlite数据库执行此操作。我需要它是本地的,而不是驱动器,因为我将从其他(非铬)进程与它进行交互。甚至从驱动器加载文件(使用同步文件系统,而不是文件系统),我不知道如何去访问一个sqlite文件
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
推荐答案
SQLite对Chrome Packaged Apps的支持将非常棒。毕竟,桌面上和Android上的Chrome都支持它。
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
这篇关于从Chrome打包应用读取和写入本地sqlite数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!