This is a WASI build of the SQLite 3.44 shell, compiled with wasienv.
It is published as an NPM package @antonz/sqlite-wasi:
https://unpkg.com/@antonz/sqlite-wasi/dist/sqlite.wasm
Using the Runno runtime:
import { WASI } from "https://unpkg.com/@antonz/runno/dist/runno.mjs";
const url = "https://unpkg.com/@antonz/sqlite-wasi/dist/sqlite.wasm";
const result = await WASI.start(fetch(url), {
args: ["sqlite3", "-version"],
stdout: (out) => console.log(out),
stderr: (err) => console.error(err),
});
console.log(`exit code = ${result.exitCode}`);
Result:
3.44.2 2023-11-24 11:41:44 ...
exit code = 0
No file I/O.
Unsupported dot commands:
.shell
.system
bash scripts/install.sh
bash scripts/build.sh
Copyright 2024 Anton Zhiyanov, MIT License.
SQLite is public domain.