API reference / @evolu/common / Evolu/Internal / ClientStorage
Interface: ClientStorage
Defined in: packages/common/src/Evolu/Db.ts:1167
Common interface for both client and relay SQLite storages.
Extends
Properties
Property | Modifier | Type | Description | Inherited from | Defined in |
---|---|---|---|---|---|
deleteOwner | readonly | (ownerId ) => boolean | Delete all data for the given Owner. | Storage .deleteOwner | packages/common/src/Evolu/Storage.ts:60 |
findLowerBound | readonly | (ownerId , begin , end , upperBound ) => | null | number & Brand <"Int" > & Brand <"NonNegative" > | - | Storage .findLowerBound | packages/common/src/Evolu/Storage.ts:58 |
fingerprint | readonly | (ownerId , begin , end ) => | null | Fingerprint | - | Storage .fingerprint | packages/common/src/Evolu/Storage.ts:56 |
fingerprintRanges | readonly | (ownerId , buckets , upperBound? ) => | null | readonly FingerprintRange [] | Computes fingerprints with their upper bounds in one call. This function can be replaced with many fingerprint/findLowerBound calls, but implementations can leverage it for batching and more efficient fingerprint computation. | Storage .fingerprintRanges | packages/common/src/Evolu/Storage.ts:57 |
getSize | readonly | (ownerId ) => | null | number & Brand <"Int" > & Brand <"NonNegative" > | - | Storage .getSize | packages/common/src/Evolu/Storage.ts:55 |
insertTimestamp | readonly | (ownerId , timestamp ) => Result <void , SqliteError > | - | SqliteStorageBase .insertTimestamp | packages/common/src/Evolu/Storage.ts:50 |
iterate | readonly | (ownerId , begin , end , callback ) => void | - | Storage .iterate | packages/common/src/Evolu/Storage.ts:59 |
readDbChange | readonly | (ownerId , timestamp ) => | null | EncryptedDbChange | Read encrypted DbChanges from storage. | Storage .readDbChange | packages/common/src/Evolu/Protocol.ts:292 |
setWriteKey | readonly | (ownerId , writeKey ) => boolean | Sets the WriteKey for the given Owner. | Storage .setWriteKey | packages/common/src/Evolu/Protocol.ts:283 |
validateWriteKey | readonly | (ownerId , writeKey ) => boolean | Validates the WriteKey for the given Owner. | Storage .validateWriteKey | packages/common/src/Evolu/Protocol.ts:277 |
writeMessages | readonly | (ownerId , messages ) => boolean | Write encrypted CrdtMessages to storage. | Storage .writeMessages | packages/common/src/Evolu/Protocol.ts:286 |