Skip to content

Commit

Permalink
Merge pull request #171 from tursodatabase/wasm-harcoded-path
Browse files Browse the repository at this point in the history
wasm: Fix hard-coded database path
  • Loading branch information
penberg authored Jan 30, 2024
2 parents 5344845 + c26f956 commit 540545c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/libsql-client-wasm/src/wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function _createClient(config: ExpandedConfig): Client {
syncUrl: config.syncUrl,
};

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

executeStmt(db, "SELECT 1 AS checkThatTheDatabaseCanBeOpened", config.intMode);

Expand Down

0 comments on commit 540545c

Please sign in to comment.