API reference › @evolu/common › local‑first/Storage
Encrypted storage layer for local-first data.
Functions
| Function | Description |
|---|---|
| createBaseSqliteStorage | Creates a BaseSqliteStorage implementation. |
| createBaseSqliteStorageTables | - |
| getOwnerUsage | Retrieves usage information for an owner from the evolu_usage table. |
| getTimestampByIndex | - |
| getTimestampInsertStrategy | Determines the insertion strategy for a timestamp based on its position relative to the current first and last timestamps. |
| testCreateCrdtMessage | Test helper for creating a simple CrdtMessage. |
| timestampBytesToFingerprint | - |
| updateOwnerUsage | Updates timestamp bounds in evolu_usage table. |
Interfaces
| Interface | Description |
|---|---|
| BaseRange | - |
| BaseSqliteStorage | Common interface for both client and relay SQLite storages. |
| BaseSqliteStorageDep | - |
| CrdtMessage | A CRDT message combining a unique Timestamp with a DbChange. |
| DbChange | A DbChange is a change to a table row. Together with a unique Timestamp, it forms a CrdtMessage. |
| EncryptedCrdtMessage | An encrypted CrdtMessage. |
| FingerprintRange | - |
| SkipRange | - |
| Storage | Evolu Storage. |
| StorageConfig | - |
| StorageDep | - |
| StorageQuotaError | Error when storage or billing quota is exceeded. |
| TimestampsRange | - |
| ValidDbChangeValuesError | - |
Type Aliases
| Type Alias | Description |
|---|---|
| DbChangeValues | - |
| EncryptedDbChange | Encrypted DbChange |
| Fingerprint | A cryptographic hash used for efficiently comparing collections of TimestampByteses. |
| InfiniteUpperBound | - |
| Range | - |
| RangeType | - |
| RangeUpperBound | Union type for Range's upperBound: either a TimestampBytes or InfiniteUpperBound. |
| SqliteStorageDeps | - |
| StorageInsertTimestampStrategy | - |
| ValidDbChangeValues | - |
Variables
| Variable | Description |
|---|---|
| DbChange | A DbChange is a change to a table row. Together with a unique Timestamp, it forms a CrdtMessage. |
| DbChangeValues | - |
| fingerprintSize | - |
| InfiniteUpperBound | - |
| RangeType | - |
| ValidDbChangeValues | - |
| zeroFingerprint | A fingerprint of an empty range. |