Struct native_db::transaction::query::RwScan
source · pub struct RwScan<'db, 'txn> { /* private fields */ }
Implementations§
source§impl<'db, 'txn> RwScan<'db, 'txn>where
'txn: 'db,
impl<'db, 'txn> RwScan<'db, 'txn>where
'txn: 'db,
sourcepub fn primary<T: ToInput>(
&self,
) -> Result<PrimaryScan<Table<'db, Key, &'static [u8]>, T>>
pub fn primary<T: ToInput>( &self, ) -> Result<PrimaryScan<Table<'db, Key, &'static [u8]>, T>>
Get a values from the database by primary key.
all
- Scan all items.start_with
- Scan items with a primary key starting with a key.range
- Scan items with a primary key in a given range.
sourcepub fn secondary<T: ToInput>(
&self,
key_def: impl ToKeyDefinition<KeyOptions>,
) -> Result<SecondaryScan<Table<'db, Key, &'static [u8]>, Table<'db, Key, Key>, T>>
pub fn secondary<T: ToInput>( &self, key_def: impl ToKeyDefinition<KeyOptions>, ) -> Result<SecondaryScan<Table<'db, Key, &'static [u8]>, Table<'db, Key, Key>, T>>
Get a values from the database by secondary key.
all
- Scan all items.start_with
- Scan items with a primary key starting with a key.range
- Scan items with a primary key in a given range.
Auto Trait Implementations§
impl<'db, 'txn> Freeze for RwScan<'db, 'txn>
impl<'db, 'txn> !RefUnwindSafe for RwScan<'db, 'txn>
impl<'db, 'txn> Send for RwScan<'db, 'txn>
impl<'db, 'txn> Sync for RwScan<'db, 'txn>
impl<'db, 'txn> Unpin for RwScan<'db, 'txn>
impl<'db, 'txn> !UnwindSafe for RwScan<'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