0.0.6 • Published 5 years ago

@tsundoku/crunch v0.0.6

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

Crunch

sqlite3 compiled to WASM with Javascript bindings. For the browser and the server.

$ node -e "require('repl').start({ignoreUndefined: true})" --experimental-repl-await
> const {createEngine} = require('@tsundoku/crunch');
> const engine = await createEngine();
> const db = await engine.open();
> db.exec('CREATE TABLE peaks (name TEXT, m INTEGER)');
> db.exec('INSERT INTO peaks (name, m) VALUES ("Olympus Mons", 21171)');
> [...db.query('SELECT * FROM peaks')];
[ { name: 'Olympus Mons', m: 21171 } ]

Setup

$ git clone https://github.com/chromy/crunch.git 
$ cd crunch
$ tools/deps
$ tools/gen out 
$ tools/deps/ninja -C out

Build

$ tools/deps/ninja -C out

Test

$ tools/test
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago