Debian Codegraph @

tests/auto/qml/qqmlsqldatabase/data/reopen1.js

raw symbols SCIP
1 .import QtQuick.LocalStorage 2.0 as Sql
2
3 function test() {
4 var r="transaction_not_finished";
5 var db = Sql.LocalStorage.openDatabaseSync("QmlTestDB-reopen", "1.0", "Test database from Qt autotests", 1000000);
6
7 db.transaction(
8 function(tx) {
9 tx.executeSql('CREATE TABLE IF NOT EXISTS Greeting(salutation TEXT, salutee TEXT)');
10 tx.executeSql('INSERT INTO Greeting VALUES(?, ?)', [ 'hello', 'world' ]);
11 r = "passed";
12 }
13 );
14
15 return r;
16 }