v0.5.3-pre.003
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: ks-store/src/lib.rs
|
||||
// version: 10
|
||||
// version: 12
|
||||
|
||||
//! Backend-agnostic Solana storage contracts and store facade.
|
||||
#![warn(missing_docs)]
|
||||
@@ -13,8 +13,12 @@ mod store;
|
||||
|
||||
/// Canonical crate-internal tracing target shared through the crate-root facade.
|
||||
pub(crate) use self::constants::TRACING_TARGET;
|
||||
/// Crate-internal storage symbol `ACCOUNT_OBSERVATIONS_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::ACCOUNT_OBSERVATIONS_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `CORE_ACCOUNT_KEYS_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::CORE_ACCOUNT_KEYS_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `CORE_ACCOUNT_STATES_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::CORE_ACCOUNT_STATES_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `CORE_BALANCE_CHANGES_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::CORE_BALANCE_CHANGES_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `CORE_INNER_INSTRUCTIONS_TABLE_NAME` shared through the crate-root facade.
|
||||
@@ -23,6 +27,8 @@ pub(crate) use self::postgres::CORE_INNER_INSTRUCTIONS_TABLE_NAME;
|
||||
pub(crate) use self::postgres::CORE_INSTRUCTIONS_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `CORE_LOGS_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::CORE_LOGS_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `CORE_RETURN_DATA_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::CORE_RETURN_DATA_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `CORE_TRANSACTIONS_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::CORE_TRANSACTIONS_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `DECODE_COVERAGE_DECLARATIONS_TABLE_NAME` shared through the crate-root facade.
|
||||
@@ -31,8 +37,10 @@ pub(crate) use self::postgres::DECODE_COVERAGE_DECLARATIONS_TABLE_NAME;
|
||||
pub(crate) use self::postgres::DECODE_COVERAGE_OBSERVATIONS_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `DECODE_EVENTS_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::DECODE_EVENTS_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `MATERIALIZED_EVENTS_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::MATERIALIZED_EVENTS_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `LEGACY_SOLANA_TABLE_PREFIX` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::LEGACY_SOLANA_TABLE_PREFIX;
|
||||
/// Crate-internal storage symbol `MATERIALIZED_OUTPUTS_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::MATERIALIZED_OUTPUTS_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `PROCESSING_LEDGER_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::PROCESSING_LEDGER_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `PostgresStore` shared through the crate-root facade.
|
||||
@@ -47,12 +55,8 @@ pub(crate) use self::postgres::RAW_TRANSACTIONS_TABLE_NAME;
|
||||
pub(crate) use self::postgres::STORE_SCHEMA_ADVISORY_LOCK_ID;
|
||||
/// Crate-internal storage symbol `TRANSACTION_OBSERVATIONS_TABLE_NAME` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::TRANSACTION_OBSERVATIONS_TABLE_NAME;
|
||||
/// Crate-internal storage symbol `apply_core_store_schema` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::apply_core_store_schema;
|
||||
/// Crate-internal storage symbol `apply_decode_store_schema` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::apply_decode_store_schema;
|
||||
/// Crate-internal storage symbol `apply_raw_store_schema` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::apply_raw_store_schema;
|
||||
/// Crate-internal complete PostgreSQL baseline initializer shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::apply_store_schema;
|
||||
/// Crate-internal storage symbol `core_store_schema_statements` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::core_store_schema_statements;
|
||||
/// Crate-internal storage symbol `core_store_table_diagnostic_specs` shared through the crate-root facade.
|
||||
@@ -61,6 +65,8 @@ pub(crate) use self::postgres::core_store_table_diagnostic_specs;
|
||||
pub(crate) use self::postgres::decode_store_schema_statements;
|
||||
/// Crate-internal storage symbol `decode_store_table_diagnostic_specs` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::decode_store_table_diagnostic_specs;
|
||||
/// Crate-internal expected PostgreSQL index inventory shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::expected_postgres_index_names;
|
||||
/// Crate-internal storage symbol `has_raw_transaction_signature` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::has_raw_transaction_signature;
|
||||
/// Crate-internal storage symbol `has_transaction_observation_key` shared through the crate-root facade.
|
||||
@@ -95,8 +101,8 @@ pub(crate) use self::postgres::list_decode_coverage_summary;
|
||||
pub(crate) use self::postgres::list_decode_inputs;
|
||||
/// Crate-internal storage symbol `list_decode_replay_inputs` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::list_decode_replay_inputs;
|
||||
/// Crate-internal storage symbol `list_materialized_events` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::list_materialized_events;
|
||||
/// Crate-internal storage symbol `list_materialized_outputs` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::list_materialized_outputs;
|
||||
/// Crate-internal storage symbol `list_raw_transactions_for_core_extraction` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::list_raw_transactions_for_core_extraction;
|
||||
/// Crate-internal storage symbol `list_replay_entity_summaries` shared through the crate-root facade.
|
||||
@@ -107,10 +113,8 @@ pub(crate) use self::postgres::list_replay_program_summaries;
|
||||
pub(crate) use self::postgres::list_replay_transaction_candidates;
|
||||
/// Crate-internal storage symbol `load_current_schema` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::load_current_schema;
|
||||
/// Crate-internal storage symbol `load_latest_migration_version` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::load_latest_migration_version;
|
||||
/// Crate-internal storage symbol `load_migration_table_name` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::load_migration_table_name;
|
||||
/// Crate-internal expected PostgreSQL index counts shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::load_expected_index_counts;
|
||||
/// Crate-internal storage symbol `load_server_version` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::load_server_version;
|
||||
/// Crate-internal storage symbol `load_table_statistics` shared through the crate-root facade.
|
||||
@@ -138,51 +142,65 @@ pub(crate) use self::postgres::raw_store_table_diagnostic_specs;
|
||||
pub(crate) use self::postgres::run_health_check;
|
||||
/// Crate-internal storage symbol `table_exists` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_exists;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_core_account_keys_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_core_account_keys_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_core_balance_changes_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_core_balance_changes_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_core_inner_instructions_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_core_inner_instructions_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_core_instructions_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_core_instructions_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_core_logs_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_core_logs_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_core_transactions_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_core_transactions_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_decode_coverage_declarations_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_decode_coverage_declarations_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_decode_coverage_observations_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_decode_coverage_observations_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_decode_events_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_decode_events_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_mat_events_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_mat_events_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_obs_transaction_observations_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_obs_transaction_observations_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_ops_processing_ledger_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_ops_processing_ledger_sql;
|
||||
/// Crate-internal storage symbol `table_stats_kb_sol_raw_transactions_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_kb_sol_raw_transactions_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_core_account_keys_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_core_account_keys_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_core_account_states_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_core_account_states_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_core_balance_changes_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_core_balance_changes_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_core_inner_instructions_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_core_inner_instructions_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_core_instructions_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_core_instructions_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_core_logs_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_core_logs_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_core_return_data_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_core_return_data_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_core_transactions_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_core_transactions_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_decode_coverage_declarations_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_decode_coverage_declarations_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_decode_coverage_observations_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_decode_coverage_observations_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_decode_events_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_decode_events_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_mat_outputs_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_mat_outputs_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_obs_account_observations_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_obs_account_observations_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_obs_transaction_observations_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_obs_transaction_observations_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_ops_processing_ledger_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_ops_processing_ledger_sql;
|
||||
/// Crate-internal storage symbol `table_stats_k_sol_raw_transactions_sql` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::table_stats_k_sol_raw_transactions_sql;
|
||||
/// Crate-internal storage symbol `update_core_instruction_lifecycle` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::update_core_instruction_lifecycle;
|
||||
/// Crate-internal storage symbol `update_raw_payload_lifecycle` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::update_raw_payload_lifecycle;
|
||||
/// Crate-internal storage symbol `validate_core_store_table_names` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::validate_core_store_table_names;
|
||||
/// Crate-internal storage symbol `validate_decode_store_table_names` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::validate_decode_store_table_names;
|
||||
/// Crate-internal storage symbol `validate_raw_store_table_names` shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::validate_raw_store_table_names;
|
||||
/// Crate-internal PostgreSQL SQL-resource canary shared through the crate-root facade.
|
||||
pub(crate) use self::postgres::validate_postgres_sql_resources;
|
||||
|
||||
/// Transitional logical schema contract identifier used until the `0.5.3-pre.3` rebuild.
|
||||
pub use self::constants::STORE_SCHEMA_CONTRACT_VERSION;
|
||||
/// Generic account acquisition observation insert contract.
|
||||
pub use self::contracts::AccountObservationInsert;
|
||||
/// Generic account acquisition observation persisted row contract.
|
||||
pub use self::contracts::AccountObservationRow;
|
||||
/// Transaction acquisition observation origin.
|
||||
pub use self::contracts::AcquisitionObservationOrigin;
|
||||
/// Generic account acquisition observation status.
|
||||
pub use self::contracts::AcquisitionObservationStatus;
|
||||
/// Core account key insert contract.
|
||||
pub use self::contracts::CoreAccountKeyInsert;
|
||||
/// Core account key persisted row contract.
|
||||
pub use self::contracts::CoreAccountKeyRow;
|
||||
/// Core account key source category.
|
||||
pub use self::contracts::CoreAccountKeySource;
|
||||
/// Core account-state insert contract.
|
||||
pub use self::contracts::CoreAccountStateInsert;
|
||||
/// Core account-state persisted row contract.
|
||||
pub use self::contracts::CoreAccountStateRow;
|
||||
/// Core balance change insert contract.
|
||||
pub use self::contracts::CoreBalanceChangeInsert;
|
||||
/// Core balance change kind.
|
||||
@@ -215,6 +233,10 @@ pub use self::contracts::CoreInstructionRow;
|
||||
pub use self::contracts::CoreLogInsert;
|
||||
/// Core log persisted row contract.
|
||||
pub use self::contracts::CoreLogRow;
|
||||
/// Core return-data insert contract.
|
||||
pub use self::contracts::CoreReturnDataInsert;
|
||||
/// Core return-data persisted row contract.
|
||||
pub use self::contracts::CoreReturnDataRow;
|
||||
/// Core transaction insert contract.
|
||||
pub use self::contracts::CoreTransactionInsert;
|
||||
/// Core transaction persisted row contract.
|
||||
@@ -237,24 +259,26 @@ pub use self::contracts::DecodeObservationInsert;
|
||||
pub use self::contracts::DecodePersistenceBundle;
|
||||
/// Contextual instruction decode and materialization storage behavior.
|
||||
pub use self::contracts::DecodePipelineStore;
|
||||
/// Source-neutral external decode schema provenance.
|
||||
pub use self::contracts::DecodeSchemaProvenance;
|
||||
/// Bounded contextual instruction selection filter for decode campaigns.
|
||||
pub use self::contracts::DecodeSelectionFilter;
|
||||
/// Insert or upsert result contract returned by repositories.
|
||||
pub use self::contracts::InsertOutcome;
|
||||
/// Maximum number of materialized rows returned by one bounded query.
|
||||
pub use self::contracts::MAX_MATERIALIZED_EVENT_QUERY_ROWS;
|
||||
pub use self::contracts::MAX_MATERIALIZED_OUTPUT_QUERY_ROWS;
|
||||
/// Maximum repository page size.
|
||||
pub use self::contracts::MAX_PAGE_SIZE;
|
||||
/// Maximum number of rows returned by one replay candidate query.
|
||||
pub use self::contracts::MAX_REPLAY_CANDIDATE_ROWS;
|
||||
/// Atomic persistence bundle for one materializer and one decoded observation.
|
||||
pub use self::contracts::MaterializationPersistenceBundle;
|
||||
/// Bounded read-only materialized event selection.
|
||||
pub use self::contracts::MaterializedEventFilter;
|
||||
/// One materialized output returned by a bounded query.
|
||||
pub use self::contracts::MaterializedEventQueryRow;
|
||||
/// Bounded read-only materialized output selection.
|
||||
pub use self::contracts::MaterializedOutputFilter;
|
||||
/// One processor-owned generic materialized output row.
|
||||
pub use self::contracts::MaterializedOutputInsert;
|
||||
/// One materialized output returned by a bounded query.
|
||||
pub use self::contracts::MaterializedOutputQueryRow;
|
||||
/// Page request contract for repository list operations.
|
||||
pub use self::contracts::PageRequest;
|
||||
/// Stable processing ledger identity.
|
||||
@@ -325,12 +349,8 @@ pub use self::contracts::StoreResourceStatistics;
|
||||
pub use self::contracts::StoreRuntimeSummary;
|
||||
/// Transaction acquisition observation insert contract.
|
||||
pub use self::contracts::TransactionObservationInsert;
|
||||
/// Transaction acquisition observation origin.
|
||||
pub use self::contracts::TransactionObservationOrigin;
|
||||
/// Transaction acquisition observation persisted row contract.
|
||||
pub use self::contracts::TransactionObservationRow;
|
||||
/// Transaction acquisition observation status.
|
||||
pub use self::contracts::TransactionObservationStatus;
|
||||
/// Storage error helper functions.
|
||||
pub use self::contracts::storage_contract_error;
|
||||
/// Backend-agnostic persistent store facade.
|
||||
|
||||
Reference in New Issue
Block a user