【发布时间】:2018-04-14 20:39:20
【问题描述】:
我正在使用 angular2 ionic2 中的 cordova-plugin-sqlite。但是我在任何地方都没有找到数据库文件。我已经看到很多关于这个问题的问题,但没有一个对我有帮助。它不在 www 文件夹中。我想知道这个 .db 文件的确切位置以及如何设置这个文件的位置。
this.sqlite.create(
{
name: "MyDatabase.db", // <---- I want to know location of this file
location: "default" // and how to set its location
});
【问题讨论】:
-
你得到答案了吗?
-
@AshutoshSingh no....
-
好的假设如果我想下载文件(MyDatabase.db),那么如何在离子中下载它......我的意思是,类似:
.getLocation('default')会给出路径吗? -
不知道兄弟...@AshutoshSingh
标签: android angular sqlite cordova ionic2