tursodatabase / libsql-client-ts

TypeScript/JavaScript client API for libSQL

Home Page:https://docs.turso.tech/sdk/ts/quickstart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix hard-coded database filename in Wasm client

penberg opened this issue · comments

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.

Fixed by #171