aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/README-dist.txt
blob: 422f3f1e0c5822530f2ebb3fdb45e62fbe1762ee (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
This is the README for the sqlite3 WASM/JS distribution.

Main project page: https://sqlite.org

TODO: link to main WASM/JS docs, once they are online

This archive contains the sqlite3.js and sqlite3.wasm file which make
up the sqlite3 WASM/JS build.

The jswasm directory contains both the main deliverables and small
demonstration and test apps. Browsers will not serve WASM files from
file:// URLs, so the demo/test apps require a web server and that
server must include the following headers in its response when serving
the files:

    Cross-Origin-Opener-Policy: same-origin
    Cross-Origin-Embedder-Policy: require-corp

The files named sqlite3*.js and sqlite3.wasm belong to the core
sqlite3 deliverables and the others are soley for demonstration and
may be discarded. They are not in separate directories from the main
deliverables because a quirk of URI resolution in JS code would then
require that sqlite3.js be duplicated and edited for Worker-loaded
operation.