You can install sqlite with:
wapm install sqlite
Note: this repo is inspired by Eric Synk sqlite3 adaptation for wasm2cil.
You can run the sqlite CLI
$ wapm run sqlite
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 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>
You can build SQLite from source very easily with wasienv.
Steps:
- Run
bash build.sh