pub struct Select { /* private fields */ }Expand description
A select query builder.
Implementations§
Source§impl Select
impl Select
Sourcepub fn agg(self, name: impl Into<String>, expr: Expr) -> Select
pub fn agg(self, name: impl Into<String>, expr: Expr) -> Select
Add a named computed / aggregation column.
Sourcepub fn filter(self, predicate: Expr) -> Select
pub fn filter(self, predicate: Expr) -> Select
Add a where predicate (multiple predicates are AND-combined).
Sourcepub fn by_expr(self, name: impl Into<String>, expr: Expr) -> Select
pub fn by_expr(self, name: impl Into<String>, expr: Expr) -> Select
Group by a named computed expression.
Auto Trait Implementations§
impl !Send for Select
impl !Sync for Select
impl Freeze for Select
impl RefUnwindSafe for Select
impl Unpin for Select
impl UnsafeUnpin for Select
impl UnwindSafe for Select
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