pub struct RScan<'db, 'txn> { /* private fields */ }
Expand description
Get values from the database.
Implementations§
Source§impl<'txn> RScan<'_, 'txn>
impl<'txn> RScan<'_, 'txn>
Sourcepub fn primary<T: Input>(
&self,
) -> Result<PrimaryScan<ReadOnlyTable<'txn, DatabaseInnerKeyValue, &'static [u8]>, T>>
pub fn primary<T: Input>( &self, ) -> Result<PrimaryScan<ReadOnlyTable<'txn, DatabaseInnerKeyValue, &'static [u8]>, T>>
Get a values from the database by primary key.
Sourcepub fn secondary<T: Input>(
&self,
key_def: impl KeyDefinition<DatabaseSecondaryKeyOptions>,
) -> Result<SecondaryScan<ReadOnlyTable<'txn, DatabaseInnerKeyValue, &'static [u8]>, ReadOnlyTable<'txn, DatabaseInnerKeyValue, DatabaseInnerKeyValue>, T>>
pub fn secondary<T: Input>( &self, key_def: impl KeyDefinition<DatabaseSecondaryKeyOptions>, ) -> Result<SecondaryScan<ReadOnlyTable<'txn, DatabaseInnerKeyValue, &'static [u8]>, ReadOnlyTable<'txn, DatabaseInnerKeyValue, DatabaseInnerKeyValue>, T>>
Get a values from the database by secondary key.
Auto Trait Implementations§
impl<'db, 'txn> Freeze for RScan<'db, 'txn>
impl<'db, 'txn> !RefUnwindSafe for RScan<'db, 'txn>
impl<'db, 'txn> Send for RScan<'db, 'txn>
impl<'db, 'txn> Sync for RScan<'db, 'txn>
impl<'db, 'txn> Unpin for RScan<'db, 'txn>
impl<'db, 'txn> !UnwindSafe for RScan<'db, 'txn>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more