summaryrefslogtreecommitdiffstats
path: root/tools/page_cycler/database/select-transactions/index.html
blob: bfd0b39ac4b4a35e13f7ee5f2c98f4aff46a1233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE HTML>
<html>
<title>Select transactions</title>
<script src="../head.js"></script>
<script src="../common.js"></script>
<script>
var idCounter = 0;

function transactionCallback(tx) {
  tx.executeSql('SELECT * FROM Test WHERE ID = ?', [idCounter++],
                function(tx, data) {}, function(tx, error) {});
}
</script>

<body>
<script>
  runPerformanceTest({
    dbName: "SelectTransactions",
    readOnly: false,
    insertRowsAtSetup: true,
    transactionCallback: transactionCallback,
    customRunTransactions: null
  });</script>
</body>
</html>