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.
This commit is contained in:
Pekka Enberg 2024-08-04 10:02:14 +03:00
parent 7df979cd3a
commit 933bf89bb9
3 changed files with 137 additions and 20 deletions

View file

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