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§
Sourcefn dump_table(
&self,
table_name: String,
page_size: u16,
page_number: usize,
) -> Result<BTreeMap<String, String>>
fn dump_table( &self, table_name: String, page_size: u16, page_number: usize, ) -> Result<BTreeMap<String, String>>
Dump a DB table with pagination
Sourcefn primary_db_name(&self) -> String
fn primary_db_name(&self) -> String
Get the name of the DB. This is simply the name of the struct
Sourcefn describe_all_tables(&self) -> BTreeMap<String, (String, String)>
fn describe_all_tables(&self) -> BTreeMap<String, (String, String)>
Get a map of table names to key-value types
Sourcefn count_table_keys(&self, table_name: String) -> Result<usize>
fn count_table_keys(&self, table_name: String) -> Result<usize>
Count the entries in the table
Sourcefn table_summary(&self, table_name: String) -> Result<TableSummary>
fn table_summary(&self, table_name: String) -> Result<TableSummary>
Return table summary of the input table