Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them.
Page: /drakestapleton/sqlite/blob/master/ext/wasm/index.html
# sqlite
[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.
Brought by drakestapleton
Sign in to star 0 stars 0 watching
About Files History Releases Proposed changes Issues For developers
branch `master` Branches Tags History
`sqlite / ext / wasm / index.html`
182 lines ยท 8908 bytes Raw Blame History
1
2
3
4
5
6
7
8 sqlite3 WASM Testing Page Index
9
10
11
19 sqlite3 WASM test pages
20
21
Below is the list of test pages for the sqlite3 WASM
22 builds. All of them require that this directory have been
23 "make"d first. The intent is that this page be run
24 using:
25
althttpd -enable-sab -page index.html
26
and the individual tests be started in their own tab.
27 Warnings and Caveats:
28
29
All of these pages must be served via an HTTP
30 server. Browsers do not support loading WASM files via
31 file:// URLs.
32
Any OPFS-related pages or tests require:
33
34
An OPFS-capable browser released after February
35 2023. Some tests will work with Chromium-based browsers
36 going back to around v102.
37
That the web server emit the so-called
38 COOP
39 and
40 COEP
41 headers. althttpd requires the
42 -enable-sab flag for that.
43
44
45
46
47
48
The tests and demos...
49
50
Core-most tests
51
52
tester1 (32-bit
53 64-bit): Core unit and
54 regression tests for the various APIs and surrounding
55 utility code.
56
tester1-esm (32-bit
57 64-bit): same as
58 tester1 but loads sqlite3 in the main thread via
59 an ES6 module.
60
61
tester1-worker (32-bit
62 64-bit): same thing
63 but running in a Worker.
64
tester1-worker ESM (32-bit
65 64-bit): same as
66 tester1-worker but loads a Worker Module which then
67 loads the sqlite3 API via an ES6 module. Not all
68 browsers permit loading modules in Worker threads.
69
70
71
72
High-level apps and demos...
73
74
fiddle is an HTML front-end
75 to a wasm build of the sqlite3 shell.
76
demo-123 provides a
77 no-nonsense example of adding sqlite3 support to a web
78 page in the UI thread.
79
demo-123-worker is
80 the same as demo-123 but loads and runs
81 sqlite3 from a Worker thread.
82
demo-jsstorage: very basic
83 demo of using the key-value VFS for storing a persistent db
84 in JS localStorage or sessionStorage.
85
demo-worker1:
86 Worker-based wrapper of the OO API #1. Its Promise-based
87 wrapper is significantly easier to use, however.
speedtest1
97 (32-bit,
98 64-bit):
99 a main-thread WASM build of speedtest1.
100
speedtest1?vfs=kvvfs
101 (32-bit,
102 64-bit):
103 speedtest1 with the kvvfs.
104
speedtest1-worker
105 (32-bit,
106 64-bit):
107 an interactive Worker-thread variant of speedtest1.
108
speedtest1-worker?vfs=kvvfs
109 (32-bit,
110 64-bit):
111 speedtest1-worker with the
112 kvvfs VFS preselected and configured for a moderate workload.
113
speedtest1-worker?vfs=opfs
114 (32-bit,
115 64-bit):
116 speedtest1-worker with the
117 OPFS VFS preselected and configured for a moderate workload.
118
speedtest1-worker?vfs=opfs-wl
119 (32-bit,
120 64-bit):
121 speedtest1-worker with the
122 OPFS Web Locks VFS preselected and configured for a moderate workload.
123
speedtest1-worker?vfs=opfs-sahpool
124 (32-bit,
125 64-bit):
126 speedtest1-worker with the OPFS-SAHPOOL VFS preselected
127 and configured for a moderate workload.
128
129
130
131
The obligatory "misc." category...
132
133
module-symbols gives
134 a high-level overview of the symbols exposed by the JS
135 module.
SQLTester is
146 another testing tool for the library but making use of
147 it requires tests from an external, proprietary
148 project. Despite not being useful to the general public,
149 a link to it is in this list so that its developer has
150 easy access to it.
151
152
153
154
WASMFS-specific tests which require that
155 the WASMFS build is available on this server (it is not by
156 default) and that this server emits the COOP/COEP headers.
157
158
scratchpad-wasmfs:
159 experimenting with WASMFS/OPFS-based persistence.
160