Skip to main content

Crate signet_cold_sql

Crate signet_cold_sql 

Source
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 propagates signet-cold/test-utils for conformance testing.

Structs§

SqlColdBackendsqlite or postgres
SQL-based cold storage backend.
SqlConnectorsqlite or postgres
Connector for SQL cold storage (PostgreSQL or SQLite).

Enums§

SqlColdError
Errors that can occur in cold SQL storage operations.
SqlConnectorErrorsqlite or postgres
Errors that can occur when initializing SQL connectors.

Type Aliases§

PostgresColdBackendpostgres
Backward-compatible alias for SqlColdBackend when using PostgreSQL.
SqliteColdBackendsqlite
Backward-compatible alias for SqlColdBackend when using SQLite.