mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-28 23:03:45 +00:00

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.
5 lines
136 B
JavaScript
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"));
|