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
↧