tursodatabase / libsql-client-ts

TypeScript/JavaScript client API for libSQL
https://docs.turso.tech/sdk/ts/quickstart
MIT License
289 stars 37 forks source link

Fix hard-coded database filename in Wasm client #155

Closed penberg closed 9 months ago

penberg commented 10 months ago

The database filename is hard-coded in wasm:

    const db: Database = new sqlite3.oo1.DB('/mydb.sqlite3', 'ct');

Fix that by parsing the URL with file:// protocol.

penberg commented 9 months ago

Fixed by https://github.com/tursodatabase/libsql-client-ts/pull/171