-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (51 loc) · 2.04 KB
/
index.html
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body>
<div id="app">
<div>
<h1>Step by step examples for IndexedDB article</h1>
<div class="group">
<button id="create-db">1. Create DB (v1)</button>
<button id="add-addresses">2. Add addresses storage (v2)</button>
<button id="fill-db">3. Fill IDB</button>
<button id="multi-entry">4. Fetch people with UK citizenship</button>
<button id="commit-example">
5. Read-write transaction with commit
</button>
<button id="abort-example">
6. Read-write transaction with abort
</button>
<button id="concurrentWrite">7. Concurrent writes</button>
<button id="concurrentRead">8. Concurrent reads</button>
<button id="concurrentReadWrite">9. Concurrent read & write</button>
<button id="concurrentWriteDifferentObjectStores">
10. Concurrent writes to different object stores
</button>
<button id="keepTransactionAlive5sec">
11. Keep transaction alive for 5 seconds
</button>
<button id="keepTransactionAliveWithPromiseLoop">
12. Keep transaction alive using microtasks (2 sec)
</button>
<button id="performRequestInSetTimeout">
13. Perform transaction in setTimeout
</button>
<button id="durabilityCompare">
14. Relaxed vs strict durability
</button>
<button id="orderExample">15. ObjectStore operations ordering</button>
<button id="cursorExample">16. Cursor example</button>
<button id="structuredClone">17. Structured clone</button>
</div>
<div id="console" class="console"></div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>