summaryrefslogtreecommitdiffstats
path: root/tools/page_cycler/database/select-readtransactions/index.html
blob: e923bc2ea7a23674595aad355de27e80b355bfb6 (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
26
<!DOCTYPE HTML>
<html>
<title>Select read-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: "SelectReadTransactions",
    readOnly: true,
    insertRowsAtSetup: true,
    transactionCallback: transactionCallback,
    customRunTransactions: null
  });
</script>
</body>
</html>