pub struct GetMany<'a, E: Entity, M: Memory = DefaultMemoryImpl> { /* private fields */ }Expand description
A bulk lookup that reads whole rows by default. Call select for individual columns.
Implementations§
Source§impl<'a, E: Entity, M: Memory> GetMany<'a, E, M>
impl<'a, E: Entity, M: Memory> GetMany<'a, E, M>
Sourcepub fn fetch(self) -> Result<Vec<Option<E>>, Error>
pub fn fetch(self) -> Result<Vec<Option<E>>, Error>
Read the entity at each supplied key. Unknown keys yield None.
§Errors
More than 32 positions return Limit. Borrow, schema and row validation errors propagate.
Sourcepub fn select<S: Selection<E>>(
self,
fields: impl FnOnce(E::Columns) -> S,
) -> SelectedGetMany<'a, E, S, M>where
E: SelectColumns,
pub fn select<S: Selection<E>>(
self,
fields: impl FnOnce(E::Columns) -> S,
) -> SelectedGetMany<'a, E, S, M>where
E: SelectColumns,
Select a field or tuple using the same field handles as a fluent query.
Auto Trait Implementations§
impl<'a, E, M = Rc<RefCell<Vec<u8>>>> !RefUnwindSafe for GetMany<'a, E, M>
impl<'a, E, M = Rc<RefCell<Vec<u8>>>> !Send for GetMany<'a, E, M>
impl<'a, E, M = Rc<RefCell<Vec<u8>>>> !Sync for GetMany<'a, E, M>
impl<'a, E, M = Rc<RefCell<Vec<u8>>>> !UnwindSafe for GetMany<'a, E, M>
impl<'a, E, M> Forget for GetMany<'a, E, M>
impl<'a, E, M> Freeze for GetMany<'a, E, M>
impl<'a, E, M> Move for GetMany<'a, E, M>
impl<'a, E, M> Unpin for GetMany<'a, E, M>
impl<'a, E, M> UnsafeUnpin for GetMany<'a, E, M>
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