API reference / @evolu/common / Evolu/Protocol / Storage

Interface: Storage

Defined in: packages/common/src/Evolu/Protocol.ts:242

Evolu Protocol Storage

The protocol is agnostic to storage implementation details—any storage can be plugged in, as long as it implements this interface. Implementations must handle their own errors; return values only indicates overall success or failure.

Extended by

Properties

PropertyModifierTypeDescriptionDefined in
deleteOwnerreadonly(ownerId) => booleanDelete all data for the given Owner.packages/common/src/Evolu/Protocol.ts:300
findLowerBoundreadonly(ownerId, begin, end, upperBound) => | null | number & Brand<"Int"> & Brand<"NonNegative">-packages/common/src/Evolu/Protocol.ts:264
fingerprintreadonly(ownerId, begin, end) => | null | Fingerprint-packages/common/src/Evolu/Protocol.ts:245
fingerprintRangesreadonly(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.packages/common/src/Evolu/Protocol.ts:258
getSizereadonly(ownerId) => | null | number & Brand<"Int"> & Brand<"NonNegative">-packages/common/src/Evolu/Protocol.ts:243
iteratereadonly(ownerId, begin, end, callback) => void-packages/common/src/Evolu/Protocol.ts:271
readDbChangereadonly(ownerId, timestamp) => | null | EncryptedDbChangeRead encrypted DbChanges from storage.packages/common/src/Evolu/Protocol.ts:294
setWriteKeyreadonly(ownerId, writeKey) => booleanSets the WriteKey for the given Owner.packages/common/src/Evolu/Protocol.ts:285
validateWriteKeyreadonly(ownerId, writeKey) => booleanValidates the WriteKey for the given Owner.packages/common/src/Evolu/Protocol.ts:279
writeMessagesreadonly(ownerId, messages) => booleanWrite encrypted CrdtMessages to storage.packages/common/src/Evolu/Protocol.ts:288

Was this page helpful?