Files
turso/bindings/wasm/examples/example.js
Pekka Enberg 933bf89bb9 wasm: VFS interface to use Node filesystem API
This adds a basic VFS interface to use Node filesystem API from Rust
code. Not a lot, but parses the SQLite database file header and
completes database open without errors.
2024-08-04 11:12:21 +03:00

6 lines
123 B
JavaScript

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