v0.1.0-pre.011-fix-01
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-store/src/postgres.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
//! PostgreSQL storage implementation boundary.
|
||||
|
||||
@@ -12,100 +12,100 @@ mod store;
|
||||
mod test_serial;
|
||||
|
||||
/// Allowed Solana table domains encoded in table names.
|
||||
pub use crate::postgres::migrations::ALLOWED_SOLANA_TABLE_DOMAINS;
|
||||
pub use self::migrations::ALLOWED_SOLANA_TABLE_DOMAINS;
|
||||
/// Core account key table name.
|
||||
pub use crate::postgres::migrations::CORE_ACCOUNT_KEYS_TABLE_NAME;
|
||||
pub use self::migrations::CORE_ACCOUNT_KEYS_TABLE_NAME;
|
||||
/// Core balance change table name.
|
||||
pub use crate::postgres::migrations::CORE_BALANCE_CHANGES_TABLE_NAME;
|
||||
pub use self::migrations::CORE_BALANCE_CHANGES_TABLE_NAME;
|
||||
/// Core inner instruction table name.
|
||||
pub use crate::postgres::migrations::CORE_INNER_INSTRUCTIONS_TABLE_NAME;
|
||||
pub use self::migrations::CORE_INNER_INSTRUCTIONS_TABLE_NAME;
|
||||
/// Core instruction table name.
|
||||
pub use crate::postgres::migrations::CORE_INSTRUCTIONS_TABLE_NAME;
|
||||
pub use self::migrations::CORE_INSTRUCTIONS_TABLE_NAME;
|
||||
/// Core log table name.
|
||||
pub use crate::postgres::migrations::CORE_LOGS_TABLE_NAME;
|
||||
pub use self::migrations::CORE_LOGS_TABLE_NAME;
|
||||
/// Core Solana table names introduced by `0.2.4`.
|
||||
pub use crate::postgres::migrations::CORE_STORE_TABLE_NAMES;
|
||||
pub use self::migrations::CORE_STORE_TABLE_NAMES;
|
||||
/// Core transaction table name.
|
||||
pub use crate::postgres::migrations::CORE_TRANSACTIONS_TABLE_NAME;
|
||||
pub use self::migrations::CORE_TRANSACTIONS_TABLE_NAME;
|
||||
/// Machine-readable decoder coverage declaration table name.
|
||||
pub use crate::postgres::migrations::DECODE_COVERAGE_DECLARATIONS_TABLE_NAME;
|
||||
pub use self::migrations::DECODE_COVERAGE_DECLARATIONS_TABLE_NAME;
|
||||
/// Observed decoder coverage classification table name.
|
||||
pub use crate::postgres::migrations::DECODE_COVERAGE_OBSERVATIONS_TABLE_NAME;
|
||||
pub use self::migrations::DECODE_COVERAGE_OBSERVATIONS_TABLE_NAME;
|
||||
/// Versioned decoded event table name.
|
||||
pub use crate::postgres::migrations::DECODE_EVENTS_TABLE_NAME;
|
||||
pub use self::migrations::DECODE_EVENTS_TABLE_NAME;
|
||||
/// Decode and materialization table names introduced by `0.4.0`.
|
||||
pub use crate::postgres::migrations::DECODE_STORE_TABLE_NAMES;
|
||||
pub use self::migrations::DECODE_STORE_TABLE_NAMES;
|
||||
/// Default PostgreSQL schema policy.
|
||||
pub use crate::postgres::migrations::DEFAULT_SCHEMA_POLICY;
|
||||
pub use self::migrations::DEFAULT_SCHEMA_POLICY;
|
||||
/// Versioned materialized output table name.
|
||||
pub use crate::postgres::migrations::MATERIALIZED_EVENTS_TABLE_NAME;
|
||||
pub use self::migrations::MATERIALIZED_EVENTS_TABLE_NAME;
|
||||
/// PostgreSQL migration strategy used by this crate.
|
||||
pub use crate::postgres::migrations::MIGRATION_STRATEGY;
|
||||
pub use self::migrations::MIGRATION_STRATEGY;
|
||||
/// Migration table name used by sqlx when migrations are enabled later.
|
||||
pub use crate::postgres::migrations::MIGRATION_TABLE_NAME;
|
||||
pub use self::migrations::MIGRATION_TABLE_NAME;
|
||||
/// Processing ledger table name.
|
||||
pub use crate::postgres::migrations::PROCESSING_LEDGER_TABLE_NAME;
|
||||
pub use self::migrations::PROCESSING_LEDGER_TABLE_NAME;
|
||||
/// Table diagnostic metadata.
|
||||
pub use crate::postgres::migrations::PostgresTableDiagnosticSpec;
|
||||
pub use self::migrations::PostgresTableDiagnosticSpec;
|
||||
/// Canonical transaction acquisition table names active since `0.3.1`.
|
||||
pub use crate::postgres::migrations::RAW_STORE_TABLE_NAMES;
|
||||
pub use self::migrations::RAW_STORE_TABLE_NAMES;
|
||||
/// Canonical raw transaction table name.
|
||||
pub use crate::postgres::migrations::RAW_TRANSACTIONS_TABLE_NAME;
|
||||
pub use self::migrations::RAW_TRANSACTIONS_TABLE_NAME;
|
||||
/// Solana application table prefix.
|
||||
pub use crate::postgres::migrations::SOLANA_TABLE_PREFIX;
|
||||
pub use self::migrations::SOLANA_TABLE_PREFIX;
|
||||
/// Advisory lock id used while initializing store schemas.
|
||||
pub use crate::postgres::migrations::STORE_SCHEMA_ADVISORY_LOCK_ID;
|
||||
pub use self::migrations::STORE_SCHEMA_ADVISORY_LOCK_ID;
|
||||
/// Transaction acquisition observation table name.
|
||||
pub use crate::postgres::migrations::TRANSACTION_OBSERVATIONS_TABLE_NAME;
|
||||
pub use self::migrations::TRANSACTION_OBSERVATIONS_TABLE_NAME;
|
||||
/// Core store SQL statements applied by the idempotent initializer.
|
||||
pub use crate::postgres::migrations::core_store_schema_statements;
|
||||
pub use self::migrations::core_store_schema_statements;
|
||||
/// Core table diagnostic specs.
|
||||
pub use crate::postgres::migrations::core_store_table_diagnostic_specs;
|
||||
pub use self::migrations::core_store_table_diagnostic_specs;
|
||||
/// Decode and materialization SQL statements applied by the idempotent initializer.
|
||||
pub use crate::postgres::migrations::decode_store_schema_statements;
|
||||
pub use self::migrations::decode_store_schema_statements;
|
||||
/// Decode and materialization table diagnostic specs.
|
||||
pub use crate::postgres::migrations::decode_store_table_diagnostic_specs;
|
||||
pub use self::migrations::decode_store_table_diagnostic_specs;
|
||||
/// Returns true when a Solana table name follows the canonical prefix and domain rules.
|
||||
pub use crate::postgres::migrations::is_valid_solana_table_name;
|
||||
pub use self::migrations::is_valid_solana_table_name;
|
||||
/// Canonical transaction acquisition SQL statements applied by the initializer.
|
||||
pub use crate::postgres::migrations::raw_store_schema_statements;
|
||||
pub use self::migrations::raw_store_schema_statements;
|
||||
/// Canonical transaction acquisition diagnostic specs.
|
||||
pub use crate::postgres::migrations::raw_store_table_diagnostic_specs;
|
||||
pub use self::migrations::raw_store_table_diagnostic_specs;
|
||||
/// Validates core store table names.
|
||||
pub use crate::postgres::migrations::validate_core_store_table_names;
|
||||
pub use self::migrations::validate_core_store_table_names;
|
||||
/// Validates decode and materialization store table names.
|
||||
pub use crate::postgres::migrations::validate_decode_store_table_names;
|
||||
pub use self::migrations::validate_decode_store_table_names;
|
||||
/// Validates canonical transaction acquisition table names.
|
||||
pub use crate::postgres::migrations::validate_raw_store_table_names;
|
||||
pub use self::migrations::validate_raw_store_table_names;
|
||||
/// Validates a canonical Solana table name.
|
||||
pub use crate::postgres::migrations::validate_solana_table_name;
|
||||
pub use self::migrations::validate_solana_table_name;
|
||||
/// Maximum number of rows returned by one replay candidate query.
|
||||
pub use crate::postgres::replay_candidates::MAX_REPLAY_CANDIDATE_ROWS;
|
||||
pub use self::replay_candidates::MAX_REPLAY_CANDIDATE_ROWS;
|
||||
/// Bounded read-only filter for core entity summaries.
|
||||
pub use crate::postgres::replay_candidates::PostgresReplayEntityFilter;
|
||||
pub use self::replay_candidates::PostgresReplayEntityFilter;
|
||||
/// Core entity kind used while filtering replay candidates.
|
||||
pub use crate::postgres::replay_candidates::PostgresReplayEntityKind;
|
||||
pub use self::replay_candidates::PostgresReplayEntityKind;
|
||||
/// Aggregated mint, owner or account-key occurrences from core tables.
|
||||
pub use crate::postgres::replay_candidates::PostgresReplayEntitySummary;
|
||||
pub use self::replay_candidates::PostgresReplayEntitySummary;
|
||||
/// Bounded read-only filter for program summaries.
|
||||
pub use crate::postgres::replay_candidates::PostgresReplayProgramFilter;
|
||||
pub use self::replay_candidates::PostgresReplayProgramFilter;
|
||||
/// Program occurrence scope used while filtering replay candidates.
|
||||
pub use crate::postgres::replay_candidates::PostgresReplayProgramScope;
|
||||
pub use self::replay_candidates::PostgresReplayProgramScope;
|
||||
/// Aggregated program occurrences across outer, inner and linked logs.
|
||||
pub use crate::postgres::replay_candidates::PostgresReplayProgramSummary;
|
||||
pub use self::replay_candidates::PostgresReplayProgramSummary;
|
||||
/// One raw transaction candidate enriched with core and ledger diagnostics.
|
||||
pub use crate::postgres::replay_candidates::PostgresReplayTransactionCandidate;
|
||||
pub use self::replay_candidates::PostgresReplayTransactionCandidate;
|
||||
/// Bounded read-only filter for transaction replay candidates.
|
||||
pub use crate::postgres::replay_candidates::PostgresReplayTransactionFilter;
|
||||
pub use self::replay_candidates::PostgresReplayTransactionFilter;
|
||||
/// PostgreSQL diagnostic snapshot.
|
||||
pub use crate::postgres::store::PostgresBackendDiagnostics;
|
||||
pub use self::store::PostgresBackendDiagnostics;
|
||||
/// Minimal PostgreSQL store handle.
|
||||
pub use crate::postgres::store::PostgresStore;
|
||||
pub use self::store::PostgresStore;
|
||||
/// PostgreSQL store connection options.
|
||||
pub use crate::postgres::store::PostgresStoreOptions;
|
||||
pub use self::store::PostgresStoreOptions;
|
||||
/// PostgreSQL table diagnostic snapshot.
|
||||
pub use crate::postgres::store::PostgresTableDiagnostics;
|
||||
pub use self::store::PostgresTableDiagnostics;
|
||||
/// PostgreSQL table statistics snapshot.
|
||||
pub use crate::postgres::store::PostgresTableStatistics;
|
||||
pub use self::store::PostgresTableStatistics;
|
||||
/// Returns a DSN masked for logs and UI diagnostics.
|
||||
pub use crate::postgres::store::mask_postgres_dsn;
|
||||
pub use self::store::mask_postgres_dsn;
|
||||
|
||||
Reference in New Issue
Block a user