Skip to content

Commit

Permalink
prefix id with crsql
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexErrant committed Oct 17, 2023
1 parent 6ca26ca commit bb26a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/crsqlite-wasm/src/TX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class TX implements TXAsync {

tx(cb: (tx: TXAsync) => Promise<void>): Promise<void> {
this.assertOpen();
const id = crypto.randomUUID().replaceAll("-", "")
const id = 'crsql' + crypto.randomUUID().replaceAll("-", "")
return serializeTx(
async (tx: TXAsync) => {
await tx.exec("SAVEPOINT " + id);
Expand Down

0 comments on commit bb26a50

Please sign in to comment.