File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/powersync-sdk-common/src/client Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -476,12 +476,13 @@ export abstract class AbstractPowerSyncDatabase extends BaseObserver<PowerSyncDB
476
476
}
477
477
478
478
/**
479
- * Execute a batch write (INSERT/UPDATE/DELETE) query with multiple sets of parameters
480
- * and optionally return results.
479
+ * Execute a write query (INSERT/UPDATE/DELETE) multiple times with each parameter set
480
+ * and optionally return results.
481
+ * This is faster than executing separately with each parameter set.
481
482
*/
482
- async executeBatch ( query : string , params ?: any [ ] [ ] ) {
483
+ async executeBatch ( sql : string , parameters ?: any [ ] [ ] ) {
483
484
await this . waitForReady ( ) ;
484
- return this . database . executeBatch ( query , params ) ;
485
+ return this . database . executeBatch ( sql , parameters ) ;
485
486
}
486
487
487
488
/**
You can’t perform that action at this time.
0 commit comments