File tree Expand file tree Collapse file tree
demos/react-multi-client/src/library Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import {
2- DBAdapter ,
32 PowerSyncDatabase ,
43 PowerSyncDBListener ,
54 Transaction ,
65 WebPowerSyncDatabaseOptions ,
7- PowerSyncBackendConnector
6+ PowerSyncBackendConnector ,
7+ LockContext
88} from '@powersync/web' ;
99
1010export enum OperationType {
@@ -68,11 +68,11 @@ export class TimedPowerSyncDatabase extends PowerSyncDatabase {
6868 return this . timedOperation ( OperationType . WRITE_TX , ( ) => super . writeTransaction < T > ( callback , lockTimeout ) ) ;
6969 }
7070
71- async readLock < T > ( callback : ( db : DBAdapter ) => Promise < T > ) {
71+ async readLock < T > ( callback : ( db : LockContext ) => Promise < T > ) {
7272 return this . timedOperation ( OperationType . READ , ( ) => super . readLock < T > ( callback ) ) ;
7373 }
7474
75- async writeLock < T > ( callback : ( db : DBAdapter ) => Promise < T > ) {
75+ async writeLock < T > ( callback : ( db : LockContext ) => Promise < T > ) {
7676 return this . timedOperation ( OperationType . WRITE , ( ) => super . writeLock < T > ( callback ) ) ;
7777 }
7878
You can’t perform that action at this time.
0 commit comments