We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41964ec commit 67ab053Copy full SHA for 67ab053
packages/common/src/client/AbstractPowerSyncDatabase.ts
@@ -671,8 +671,7 @@ export abstract class AbstractPowerSyncDatabase extends BaseObserver<PowerSyncDB
671
* @returns The query result as an object with structured key-value pairs
672
*/
673
async execute(sql: string, parameters?: any[]) {
674
- await this.waitForReady();
675
- return this.database.execute(sql, parameters);
+ return this.writeLock((tx) => tx.execute(sql, parameters));
676
}
677
678
/**
0 commit comments