Expand description
Persistence backed by a SQL database, with one module per backend.
postgres and sqlite compile the same code against their own
database. sql::Options::embedded_db picks one, and the options are shared by both.
Modules§
Structs§
- Consensus
Pruning Options - Pruning parameters for ephemeral consensus storage.
- Options
- Options for database-backed persistence, supporting both Postgres and SQLite.
- Postgres
Options - Options for Postgres-backed persistence.
- Pruning
Options - Pruning parameters.
- Serializable
Retry Options - Configuration for retrying transactions aborted by PostgreSQL serialization conflicts (error 40001). Under SERIALIZABLE isolation these aborts are expected and safe to retry from scratch.
- Sqlite
Options
Enums§
- SqlBackend
Options Optionswrapped for the backendOptions::embedded_dbselects.
Constants§
- DEFAULT_
ARCHIVE_ STATE_ MIN_ RETENTION - A few days of heights at mainnet rates, and what binds whenever the light client’s history is shorter than that.
Functions§
- build_
sqlite_ path - The path of the SQLite database under the base directory
path.