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

Interface: Storage

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

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
findLowerBoundreadonly(ownerId, begin, end, upperBound) => | null | number & Brand<"Int"> & Brand<"NonNegative">-packages/common/src/Evolu/Protocol.ts:221
fingerprintreadonly(ownerId, begin, end) => | null | Fingerprint-packages/common/src/Evolu/Protocol.ts:202
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:215
getSizereadonly(ownerId) => | null | number & Brand<"Int"> & Brand<"NonNegative">-packages/common/src/Evolu/Protocol.ts:200
iteratereadonly(ownerId, begin, end, callback) => void-packages/common/src/Evolu/Protocol.ts:228
readDbChangereadonly(ownerId, timestamp) => | null | EncryptedDbChangeRead encrypted DbChanges from storage.packages/common/src/Evolu/Protocol.ts:253
validateWriteKeyreadonly(ownerId, writeKey) => booleanAuthorizes the initiator's WriteKey for the given BinaryOwnerId. For a client that does not expect foreign writes, return false.packages/common/src/Evolu/Protocol.ts:241
writeMessagesreadonly(ownerId, messages) => booleanWrite encrypted CrdtMessages to storage.packages/common/src/Evolu/Protocol.ts:247

Was this page helpful?