Expand description
SQL backend for cold storage.
This crate provides SQL-based implementations of the ColdStorage trait
for storing historical blockchain data in relational databases. All data is
stored in fully decomposed SQL columns for rich queryability.
§Supported Databases
- PostgreSQL (feature
postgres): Production-ready backend using connection pooling. - SQLite (feature
sqlite): Lightweight backend for testing and single-binary deployments.
§Feature Flags
postgres: Enables the PostgreSQL backend.sqlite: Enables the SQLite backend.test-utils: Enables both backends and propagatessignet-cold/test-utilsfor conformance testing.
Structs§
- SqlCold
Backend sqliteorpostgres - SQL-based cold storage backend.
Enums§
- SqlCold
Error - Errors that can occur in cold SQL storage operations.
Type Aliases§
- Postgres
Cold Backend postgres - Backward-compatible alias for
SqlColdBackendwhen using PostgreSQL. - Sqlite
Cold Backend sqlite - Backward-compatible alias for
SqlColdBackendwhen using SQLite.