Enum sql_query_builder::SelectClause
source · pub enum SelectClause {
Show 13 variants
From,
GroupBy,
Having,
Join,
Limit,
Offset,
OrderBy,
Select,
Where,
Except,
Intersect,
Union,
With,
}Expand description
All available clauses to be used in raw_before and raw_after methods on Select builder
Examples
use sql_query_builder as sql;
let raw_join = "inner join address addr on u.login = addr.owner_login";
let select_query = sql::Select::new()
.select("*")
.from("users u")
.raw_after(sql::SelectClause::From, raw_join)
.where_clause("u.login = foo")
.as_string();Variants§
Trait Implementations§
source§impl Clone for SelectClause
impl Clone for SelectClause
source§fn clone(&self) -> SelectClause
fn clone(&self) -> SelectClause
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl PartialEq<SelectClause> for SelectClause
impl PartialEq<SelectClause> for SelectClause
source§fn eq(&self, other: &SelectClause) -> bool
fn eq(&self, other: &SelectClause) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SelectClause
Auto Trait Implementations§
impl RefUnwindSafe for SelectClause
impl Send for SelectClause
impl Sync for SelectClause
impl Unpin for SelectClause
impl UnwindSafe for SelectClause
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