[SOLVED] QtQuick.LocalStorage 2.0 on Blackberry Playbook
-
Initializing the database on my playbook does not work like on the desktop so I had a few questions:
- Where the database is stored on the device?
- If it is playbook:/accounts/1000/appdata/%appname%, how do I get access to the directory? It seems I do not have permission to access this directory.
- Am I can from my program completely clean database (drop all tables)?
-
I'm sorry, it was all working properly.
You can not remove all tables from the database with one command, only separately, eg@var db = Sql.LocalStorage.openDatabaseSync(..);
function clearScores() {
db.transaction(
function(tx) {
tx.executeSql('DROP DATABASE Scores;');
}
);
}@
A lot of interesting information here http://doc-snapshot.qt-project.org/qt5-dev/qtquick/qmlmodule-qtquick-localstorage2-qtquick-localstorage-2.html
and in the source code: qtdeclarative/src/imports/localstorage/plugin.cpp