mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-02 09:12:16 +00:00
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:
parent
7df979cd3a
commit
933bf89bb9
3 changed files with 137 additions and 20 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue