Struct rust_query::Exec
source · pub struct Exec<'outer, 'inner> { /* private fields */ }
Expand description
This is the top level query type and dereferences to Query. It has methods for turning queries into vectors and for inserting in the database.
Implementations§
Methods from Deref<Target = Query<'inner>>§
sourcepub fn table<T: HasId>(&mut self, t: T) -> Db<'inner, T>
pub fn table<T: HasId>(&mut self, t: T) -> Db<'inner, T>
Join a table, this is like Iterator::flat_map but for queries.
sourcepub fn flat_table<T: Table>(&mut self, t: T) -> T::Dummy<'inner>
pub fn flat_table<T: Table>(&mut self, t: T) -> T::Dummy<'inner>
Join a table that has no integer primary key. Refer to Query::table for more information about joining tables.
sourcepub fn query<F, R>(&self, f: F) -> Rwhere
F: for<'a> FnOnce(&'a mut GroupQuery<'inner, 'a>) -> R,
pub fn query<F, R>(&self, f: F) -> Rwhere
F: for<'a> FnOnce(&'a mut GroupQuery<'inner, 'a>) -> R,
Perform a sub-query that returns a single result for each of the current rows.
Trait Implementations§
Auto Trait Implementations§
impl<'outer, 'inner> Freeze for Exec<'outer, 'inner>
impl<'outer, 'inner> !RefUnwindSafe for Exec<'outer, 'inner>
impl<'outer, 'inner> !Send for Exec<'outer, 'inner>
impl<'outer, 'inner> !Sync for Exec<'outer, 'inner>
impl<'outer, 'inner> !Unpin for Exec<'outer, 'inner>
impl<'outer, 'inner> !UnwindSafe for Exec<'outer, 'inner>
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