TLSyncStorageTransaction
See source codeTable of contents
Extends SynchronousStorage<R>.
Transaction interface for storage operations. Provides methods to read and modify documents, tombstones, and metadata within a transaction.
interface TLSyncStorageTransaction<R extends UnknownRecord>
extends SynchronousStorage<R> {}Methods
delete
Parameters
| Name | Description |
|---|---|
| |
Returns
voidentries
get
Parameters
| Name | Description |
|---|---|
| |
Returns
R | undefinedgetChangesSince
Get all changes (document updates and deletions) since a given clock time. This is the main method for calculating diffs for client sync.
Parameters
| Name | Description |
|---|---|
| The clock time to get changes since |
Returns
TLSyncStorageGetChangesSinceResult<R> | undefinedChanges since the specified clock time
getClock
Get the current clock value. If the clock has incremented during the transaction, the incremented value will be returned.
getSchema
from SynchronousStorage
keys
set
Parameters
| Name | Description |
|---|---|
| |
| |
Returns
voidsetSchema
from SynchronousStorage
Parameters
| Name | Description |
|---|---|
|
Returns
voidvalues
Prev
TLSyncStorageOnChangeCallbackPropsNext
TLSyncStorageTransactionOptions