Trait reth_db_api::table::TableImporter
source · pub trait TableImporter: DbTxMut {
// Provided methods
fn import_table<T: Table, R: DbTx>(
&self,
source_tx: &R,
) -> Result<(), DatabaseError> { ... }
fn import_table_with_range<T: Table, R: DbTx>(
&self,
source_tx: &R,
from: Option<<T as Table>::Key>,
to: <T as Table>::Key,
) -> Result<(), DatabaseError>
where T::Key: Default { ... }
fn import_dupsort<T: DupSort, R: DbTx>(
&self,
source_tx: &R,
) -> Result<(), DatabaseError> { ... }
}
Expand description
Allows duplicating tables across databases
Provided Methods§
sourcefn import_table<T: Table, R: DbTx>(
&self,
source_tx: &R,
) -> Result<(), DatabaseError>
fn import_table<T: Table, R: DbTx>( &self, source_tx: &R, ) -> Result<(), DatabaseError>
Imports all table data from another transaction.
sourcefn import_table_with_range<T: Table, R: DbTx>(
&self,
source_tx: &R,
from: Option<<T as Table>::Key>,
to: <T as Table>::Key,
) -> Result<(), DatabaseError>
fn import_table_with_range<T: Table, R: DbTx>( &self, source_tx: &R, from: Option<<T as Table>::Key>, to: <T as Table>::Key, ) -> Result<(), DatabaseError>
Imports table data from another transaction within a range.
sourcefn import_dupsort<T: DupSort, R: DbTx>(
&self,
source_tx: &R,
) -> Result<(), DatabaseError>
fn import_dupsort<T: DupSort, R: DbTx>( &self, source_tx: &R, ) -> Result<(), DatabaseError>
Imports all dupsort data from another transaction.
Object Safety§
This trait is not object safe.