SqliteBucketStorage
Extends
Implements
Constructors
new SqliteBucketStorage()
new SqliteBucketStorage(db, logger?): SqliteBucketStorage
Parameters
| Parameter | Type |
|---|---|
db | DBAdapter |
logger? | ILogger |
Returns
Overrides
Properties
| Property | Modifier | Type |
|---|---|---|
tableNames | public | Set<string> |
_subkeyMigrationKey | static | string |
Methods
_getClientId()
_getClientId(): Promise<string>
Returns
Promise<string>
control()
control(op, payload): Promise<string>
Invokes the powersync_control function for the sync client.
Parameters
| Parameter | Type |
|---|---|
op | PowerSyncControlCommand |
payload | null | string | ArrayBuffer | Uint8Array<ArrayBufferLike> |
Returns
Promise<string>
Implementation of
dispose()
dispose(): Promise<void>
Returns
Promise<void>
Implementation of
Overrides
getBucketOperationProgress()
getBucketOperationProgress(): Promise<BucketOperationProgress>
Returns
Promise<BucketOperationProgress>
Implementation of
BucketStorageAdapter.getBucketOperationProgress
getBucketStates()
getBucketStates(): Promise<BucketState[]>
Returns
Promise<BucketState[]>
Implementation of
BucketStorageAdapter.getBucketStates
getClientId()
getClientId(): Promise<string>
Get an unique client id.
Returns
Promise<string>
Implementation of
BucketStorageAdapter.getClientId
getCrudBatch()
getCrudBatch(limit?): Promise<null | CrudBatch>
Get a batch of objects to send to the server. When the objects are successfully sent to the server, call .complete()