Struct native_db::transaction::query::RScan
source · 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<DatabaseInnerKeyValue, &'static [u8]>, T>>
pub fn primary<T: Input>( &self ) -> Result<PrimaryScan<ReadOnlyTable<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<DatabaseInnerKeyValue, &'static [u8]>, ReadOnlyTable<DatabaseInnerKeyValue, DatabaseInnerKeyValue>, T>>
pub fn secondary<T: Input>( &self, key_def: impl KeyDefinition<DatabaseSecondaryKeyOptions> ) -> Result<SecondaryScan<ReadOnlyTable<DatabaseInnerKeyValue, &'static [u8]>, ReadOnlyTable<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