pub struct Select<Out, Loads = NoLoad> { /* private fields */ }Implementations§
Source§impl<Out, Loads> Select<Out, Loads>
impl<Out, Loads> Select<Out, Loads>
pub fn table(&self) -> Table
pub fn columns_ref(&self) -> Option<&[SelectItem]>
pub fn joins(&self) -> &[Join]
pub fn select_only(self) -> Self
pub fn column<T>(self, expr: impl IntoExpr<T>) -> Self
pub fn column_as<T>(self, expr: impl IntoExpr<T>, alias: &str) -> Self
pub fn filter(self, expr: Expr<bool>) -> Self
pub fn group_by<T>(self, expr: impl IntoExpr<T>) -> Self
pub fn having(self, expr: Expr<bool>) -> Self
pub fn join<R>(self, rel: R) -> Selfwhere
R: RelationInfo<Parent = Out>,
pub fn left_join<R>(self, rel: R) -> Selfwhere
R: RelationInfo<Parent = Out>,
pub fn join_on(self, table: Table, on: Expr<bool>) -> Self
pub fn left_join_on(self, table: Table, on: Expr<bool>) -> Self
pub fn limit(self, limit: u64) -> Self
pub fn offset(self, offset: u64) -> Self
pub fn distinct(self) -> Self
pub fn order_by(self, order: Order) -> Self
pub fn columns(self, columns: Vec<ColumnRef>) -> Self
pub fn into_model<T>(self) -> Select<T, Loads>
pub fn with<L>(self, load: L) -> Select<L::Out2, LoadChain<Loads, L>>where
L: ApplyLoad<Out>,
pub fn compile(&self) -> CompiledSql
pub fn compile_without_pagination(&self) -> CompiledSql
pub fn compile_with_extra( &self, extra_columns: &[SelectItem], extra_joins: &[Join], ) -> CompiledSql
pub fn debug_sql(&self) -> String
pub fn into_parts(self) -> (CompiledSql, Loads)
pub fn into_parts_with_loads(self) -> (Select<Out, NoLoad>, Loads)
Trait Implementations§
Auto Trait Implementations§
impl<Out, Loads> Freeze for Select<Out, Loads>where
Loads: Freeze,
impl<Out, Loads> RefUnwindSafe for Select<Out, Loads>where
Loads: RefUnwindSafe,
Out: RefUnwindSafe,
impl<Out, Loads> Send for Select<Out, Loads>
impl<Out, Loads> Sync for Select<Out, Loads>
impl<Out, Loads> Unpin for Select<Out, Loads>
impl<Out, Loads> UnwindSafe for Select<Out, Loads>where
Loads: UnwindSafe,
Out: UnwindSafe,
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