pub struct Select<'a> { /* private fields */ }
Expand description
SELECT
Implementations§
Source§impl<'a> Select<'a>
impl<'a> Select<'a>
Sourcepub fn fields(&mut self, fields: &[&'a str]) -> &mut Self
pub fn fields(&mut self, fields: &[&'a str]) -> &mut Self
Specify desired table fields in result set
Sourcepub fn filter(&mut self, expr: &'a str) -> &mut Self
pub fn filter(&mut self, expr: &'a str) -> &mut Self
Filter result set based on conditions (WHERE
clause)
Sourcepub fn group_by(&mut self, val: &'a str) -> &mut Self
pub fn group_by(&mut self, val: &'a str) -> &mut Self
Group result set based on common value (GROUP BY
clause)
Sourcepub fn having(&mut self, expr: &'a str) -> &mut Self
pub fn having(&mut self, expr: &'a str) -> &mut Self
Filter result set based on an expression on an aggregate value (HAVING
clause)
Sourcepub fn order_by(&mut self, expr: &'a str, direction: Order) -> &mut Self
pub fn order_by(&mut self, expr: &'a str, direction: Order) -> &mut Self
Order result set based on the value of an expression (ORDER BY
clause)
pub fn join( &mut self, table: &'a str, on_left: &'a str, on_right: &'a str, kind: Join, ) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Select<'a>
impl<'a> RefUnwindSafe for Select<'a>
impl<'a> Send for Select<'a>
impl<'a> Sync for Select<'a>
impl<'a> Unpin for Select<'a>
impl<'a> UnwindSafe for Select<'a>
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