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

Interface: Storage

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

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:304
findLowerBoundreadonly(ownerId, begin, end, upperBound) => | null | number & Brand<"Int"> & Brand<"NonNegative">-packages/common/src/Evolu/Protocol.ts:268
fingerprintreadonly(ownerId, begin, end) => | null | Fingerprint-packages/common/src/Evolu/Protocol.ts:249
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:262
getSizereadonly(ownerId) => | null | number & Brand<"Int"> & Brand<"NonNegative">-packages/common/src/Evolu/Protocol.ts:247
iteratereadonly(ownerId, begin, end, callback) => void-packages/common/src/Evolu/Protocol.ts:275
readDbChangereadonly(ownerId, timestamp) => | null | EncryptedDbChangeRead encrypted DbChanges from storage.packages/common/src/Evolu/Protocol.ts:298
setWriteKeyreadonly(ownerId, writeKey) => booleanSets the WriteKey for the given Owner.packages/common/src/Evolu/Protocol.ts:289
validateWriteKeyreadonly(ownerId, writeKey) => booleanValidates the WriteKey for the given Owner.packages/common/src/Evolu/Protocol.ts:283
writeMessagesreadonly(ownerId, messages) => booleanWrite encrypted CrdtMessages to storage.packages/common/src/Evolu/Protocol.ts:292

Was this page helpful?