limbo/bindings/wasm/examples/example.js
Pekka Enberg 40f517b03f Fix Wasm packaging
The `wasm-pack` too has a known bug where it forgets to add snippets to
`package.json`:

https://github.com/rustwasm/wasm-pack/issues/1206

Let's fix that with some bash magic.
2024-11-13 11:28:22 +02:00

5 lines
136 B
JavaScript

import { Database } from 'limbo-wasm';
const db = new Database('hello.db');
console.log(db.exec("SELECT 'hello, world' AS message"));