Trait rust_chain::db::IdxTable

source ·
pub trait IdxTable {
    // Required methods
    fn get_db_index(&self) -> usize;
    fn store(
        &self,
        key: u64,
        secondary: SecondaryValue,
        payer: Name
    ) -> SecondaryIterator;
    fn update(
        &self,
        iterator: &SecondaryIterator,
        secondary: SecondaryValue,
        payer: Name
    );
    fn remove(&self, iterator: &SecondaryIterator);
    fn next(&self, iterator: &SecondaryIterator) -> SecondaryIterator;
    fn previous(&self, iterator: &SecondaryIterator) -> SecondaryIterator;
    fn find_primary(&self, primary: u64) -> (SecondaryIterator, SecondaryValue);
    fn find(&self, secondary: SecondaryValue) -> SecondaryIterator;
    fn lower_bound(
        &self,
        secondary: SecondaryValue
    ) -> (SecondaryIterator, SecondaryValue);
    fn upper_bound(
        &self,
        secondary: SecondaryValue
    ) -> (SecondaryIterator, SecondaryValue);
    fn end(&self) -> SecondaryIterator;
}
Expand description

Required Methods§

Implementors§