Skip to main content

Module storage

Module storage 

Source

Macros§

with_pool 🔒
Expands $body once per backend, so each copy type-checks against a concrete sqlx database.

Structs§

LightClientPostgresOptions
Postgres connection for a light client that shares its node’s database.
LightClientSqliteOptions
Recency 🔒
In-memory LRU recency tracker shared across all clones of a SqlStorage.
SqlStorage
Storage backed by SQLite or Postgres.

Enums§

DbPool 🔒
LeafRequest
Different ways to ask the database for a leaf.
LightClientDbOptions
Where a node keeps its light client database.

Constants§

WRITE_BACKOFF 🔒
Backoff for retrying failed writes. Staggered so concurrent writers don’t lock-step.
WRITE_RETRY_MAX 🔒
Maximum number of retries for a failed write before propagating the error.

Traits§

Storage
Client-side database for a [LightClient].