mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-26 04:24:21 +01:00
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.
6 lines
123 B
JavaScript
6 lines
123 B
JavaScript
import { Database } from 'limbo-wasm';
|
|
|
|
const db = new Database('hello.db');
|
|
|
|
db.exec("SELECT 'hello, world' AS message");
|