pub struct Query<'outer, 'inner, S> { /* private fields */ }
Expand description
Implementations§
Methods from Deref<Target = Rows<'inner, S>>§
Sourcepub fn join<T: Table<Schema = S>>(&mut self) -> Column<'inner, S, T>
pub fn join<T: Table<Schema = S>>(&mut self) -> Column<'inner, S, T>
Join a table, this is like a super simple Iterator::flat_map but for queries.
After this operation Rows has rows for the combinations of each original row with each row of the table. (Also called the “Carthesian product”)
For convenience there is also Table::join.
Sourcepub fn filter(&mut self, prop: impl IntoColumn<'inner, S, Typ = bool>)
pub fn filter(&mut self, prop: impl IntoColumn<'inner, S, Typ = bool>)
Filter rows based on a column.
Sourcepub fn filter_some<Typ>(
&mut self,
val: impl IntoColumn<'inner, S, Typ = Option<Typ>>,
) -> Column<'inner, S, Typ>
pub fn filter_some<Typ>( &mut self, val: impl IntoColumn<'inner, S, Typ = Option<Typ>>, ) -> Column<'inner, S, Typ>
Filter out rows where this column is None.
Returns a new column with the unwrapped type.
Trait Implementations§
Auto Trait Implementations§
impl<'outer, 'inner, S> !Freeze for Query<'outer, 'inner, S>
impl<'outer, 'inner, S> !RefUnwindSafe for Query<'outer, 'inner, S>
impl<'outer, 'inner, S> !Send for Query<'outer, 'inner, S>
impl<'outer, 'inner, S> !Sync for Query<'outer, 'inner, S>
impl<'outer, 'inner, S> Unpin for Query<'outer, 'inner, S>
impl<'outer, 'inner, S> !UnwindSafe for Query<'outer, 'inner, S>
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