Struct solana_ledger::blockstore_db::Database [−][src]
pub struct Database { /* fields omitted */ }
Implementations
pub fn open(
path: &Path,
access_type: AccessType,
recovery_mode: Option<BlockstoreRecoveryMode>
) -> Result<Self>
pub fn get<C>(&self, key: C::Index) -> Result<Option<C::Type>> where
C: TypedColumn + ColumnName,
pub fn iter<C>(
&self,
iterator_mode: IteratorMode<C::Index>
) -> Result<impl Iterator<Item = (C::Index, Box<[u8]>)> + '_> where
C: Column + ColumnName,
pub fn delete_range_cf<C>(
&self,
batch: &mut WriteBatch<'_>,
from: Slot,
to: Slot
) -> Result<()> where
C: Column + ColumnName,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Database
impl UnwindSafe for Database
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more