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
From
GroupBy
Having
Join
Limit
Offset
OrderBy
Select
Where
Except
Intersect
Union
With
Trait Implementations
sourceimpl Clone for SelectClause
impl Clone for SelectClause
sourcefn clone(&self) -> SelectClause
fn clone(&self) -> SelectClause
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl PartialEq<SelectClause> for SelectClause
impl PartialEq<SelectClause> for SelectClause
sourcefn 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 ==. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more