v0.5.3-pre.003
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: ks-store/src/postgres/query/table_diagnostics_queries.rs
|
||||
// version: 6
|
||||
// version: 7
|
||||
|
||||
//! Read-only PostgreSQL diagnostics for known Solana store tables.
|
||||
|
||||
@@ -27,7 +27,7 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::RAW_TRANSACTIONS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_raw_transactions_sql(),
|
||||
crate::table_stats_k_sol_raw_transactions_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -35,7 +35,15 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::TRANSACTION_OBSERVATIONS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_obs_transaction_observations_sql(),
|
||||
crate::table_stats_k_sol_obs_transaction_observations_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
},
|
||||
crate::ACCOUNT_OBSERVATIONS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_k_sol_obs_account_observations_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -43,7 +51,7 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::CORE_TRANSACTIONS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_core_transactions_sql(),
|
||||
crate::table_stats_k_sol_core_transactions_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -51,7 +59,7 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::CORE_ACCOUNT_KEYS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_core_account_keys_sql(),
|
||||
crate::table_stats_k_sol_core_account_keys_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -59,7 +67,7 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::CORE_INSTRUCTIONS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_core_instructions_sql(),
|
||||
crate::table_stats_k_sol_core_instructions_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -67,7 +75,7 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::CORE_INNER_INSTRUCTIONS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_core_inner_instructions_sql(),
|
||||
crate::table_stats_k_sol_core_inner_instructions_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -75,7 +83,7 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::CORE_LOGS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_core_logs_sql(),
|
||||
crate::table_stats_k_sol_core_logs_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -83,7 +91,23 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::CORE_BALANCE_CHANGES_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_core_balance_changes_sql(),
|
||||
crate::table_stats_k_sol_core_balance_changes_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
},
|
||||
crate::CORE_RETURN_DATA_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_k_sol_core_return_data_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
},
|
||||
crate::CORE_ACCOUNT_STATES_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_k_sol_core_account_states_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -91,7 +115,7 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::PROCESSING_LEDGER_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_ops_processing_ledger_sql(),
|
||||
crate::table_stats_k_sol_ops_processing_ledger_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -99,7 +123,7 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::DECODE_EVENTS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_decode_events_sql(),
|
||||
crate::table_stats_k_sol_decode_events_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -107,7 +131,7 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::DECODE_COVERAGE_DECLARATIONS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_decode_coverage_declarations_sql(),
|
||||
crate::table_stats_k_sol_decode_coverage_declarations_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
@@ -115,15 +139,15 @@ pub(crate) async fn load_table_statistics(
|
||||
crate::DECODE_COVERAGE_OBSERVATIONS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_decode_coverage_observations_sql(),
|
||||
crate::table_stats_k_sol_decode_coverage_observations_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
},
|
||||
crate::MATERIALIZED_EVENTS_TABLE_NAME => {
|
||||
crate::MATERIALIZED_OUTPUTS_TABLE_NAME => {
|
||||
load_table_statistics_from_sql(
|
||||
pool,
|
||||
crate::table_stats_kb_sol_mat_events_sql(),
|
||||
crate::table_stats_k_sol_mat_outputs_sql(),
|
||||
table_name,
|
||||
)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user