typed_store::traits

Trait TypedStoreDebug

Source
pub trait TypedStoreDebug {
    // Required methods
    fn dump_table(
        &self,
        table_name: String,
        page_size: u16,
        page_number: usize,
    ) -> Result<BTreeMap<String, String>>;
    fn primary_db_name(&self) -> String;
    fn describe_all_tables(&self) -> BTreeMap<String, (String, String)>;
    fn count_table_keys(&self, table_name: String) -> Result<usize>;
    fn table_summary(&self, table_name: String) -> Result<TableSummary>;
}

Required Methods§

Source

fn dump_table( &self, table_name: String, page_size: u16, page_number: usize, ) -> Result<BTreeMap<String, String>>

Dump a DB table with pagination

Source

fn primary_db_name(&self) -> String

Get the name of the DB. This is simply the name of the struct

Source

fn describe_all_tables(&self) -> BTreeMap<String, (String, String)>

Get a map of table names to key-value types

Source

fn count_table_keys(&self, table_name: String) -> Result<usize>

Count the entries in the table

Source

fn table_summary(&self, table_name: String) -> Result<TableSummary>

Return table summary of the input table

Implementors§