Skip to content
SQLite compiled to WebAssembly and WASI
C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

SQLite

You can install sqlite with:

wapm install sqlite

Note: this repo is inspired by Eric Synk sqlite3 adaptation for wasm2cil.

Running

You can run the sqlite CLI

$ wapm run sqlite --dir=.
SQLite version 3.26.0 2018-12-01 12:34:55
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>

You can also connect to a specific database

$ wapm run sqlite --dir=. chinook.db
wasmer-release run sqlite.wasm -- chinook.db
SQLite version 3.26.0 2018-12-01 12:34:55
Enter ".help" for usage hints.
sqlite>

Building from Source

You can build SQLite from source very easily with wasienv.

Steps:

  1. Run bash build.sh
You can’t perform that action at this time.