I created databse with this code:
import QtQuick 2.2
import QtQuick.LocalStorage 2.0
Item {
Component.onCompleted: {
var db = LocalStorage.openDatabaseSync("MyExample", "1.0", "Example database", 10000);
db.transaction( function(tx) {
tx.executeSql ('CREATE TABLE IF NOT EXISTS Greeting (salutation TEXT, salutee TEXT)');
tx.executeSql ('INSERT INTO Greeting VALUES (?,?)', ['hello', 'world']);
var result = tx.executeSql('select * from Greeting');
for(var i = 0; i < result.rows.length; i++) {
console.log(result.rows[i].salutation);
}
});
}
}
import QtQuick 2.2
import QtQuick.LocalStorage 2.0
Item {
Component.onCompleted: {
var db = LocalStorage.openDatabaseSync("MyExample", "1.0", "Example database", 10000);
db.transaction( function(tx) {
tx.executeSql ('CREATE TABLE IF NOT EXISTS Greeting (salutation TEXT, salutee TEXT)');
tx.executeSql ('INSERT INTO Greeting VALUES (?,?)', ['hello', 'world']);
var result = tx.executeSql('select * from Greeting');
for(var i = 0; i < result.rows.length; i++) {
console.log(result.rows[i].salutation);
}
});
}
}
To copy to clipboard, switch view to plain text mode
it where is save?
Bookmarks