Skip to content

Commit

Permalink
recreate DB connection in wasm mode correctly after init of a transac…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
sivukhin committed Jun 28, 2024
1 parent 14241ff commit 59ea810
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 @@ -195,7 +195,7 @@ export class Sqlite3Client implements Client {
// Lazily creates the database connection and returns it
#getDb(): Database {
if (this.#db === null) {
this.#db = new this.#sqlite3.oo1.DB("/mydb.sqlite3", "ct");
this.#db = new sqlite3.oo1.DB(this.#path, "c");
}
return this.#db;
}
Expand Down

0 comments on commit 59ea810

Please sign in to comment.