Skip to content

mycrono/sqlite_wasm_demo_by_marc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Sqlite WASM example with persistent storage in OPFS and Async API

Important!

Serve content using following headers, otherwise won't work:

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

For reason see "Achtung: COOP and COEP HTTP Headers" in: https://sqlite.org/wasm/doc/trunk/persistence.md#coop-coep

Run (Serve locally)

python3 server-with-headers.py

Update Sqlite version

  1. look up breaking API changes: https://sqlite.org/wasm/doc/trunk/api-changes.md
  2. Download "WebAssembly & JavaScript" from https://www.sqlite.org/download.html
  3. unpack in root of project
  4. remove all files outside /jswasm
  5. change src of import tag to new script in index.html ( ??? /jswasm/sqlite3-worker1-promiser.js)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages