pub struct Select<'a> {
pub distinct: Option<()>,
pub cols: Vec<&'a str>,
pub joins: Vec<JoinInfo<'a>>,
pub whereas: Vec<WhereInfo<'a>>,
pub groups: Vec<&'a str>,
pub havings: Vec<HavingInfo<'a>>,
pub orders: Vec<Order<'a>>,
pub limit: Option<u32>,
pub offset: Option<u32>,
/* private fields */
}Fields§
§distinct: Option<()>§cols: Vec<&'a str>§joins: Vec<JoinInfo<'a>>§whereas: Vec<WhereInfo<'a>>§groups: Vec<&'a str>§havings: Vec<HavingInfo<'a>>§orders: Vec<Order<'a>>§limit: Option<u32>§offset: Option<u32>Implementations§
Source§impl<'a> Select<'a>
impl<'a> Select<'a>
pub fn any() -> Self
pub fn cols(cols: Vec<&'a str>) -> Self
pub fn col(self, col: &'a str) -> Self
pub fn distinct(self) -> Self
pub fn from(self, table: &'a str) -> Self
pub fn from_subquery(self, table: impl Into<Select<'a>>) -> Self
pub fn inner_join(self, table: &'a str) -> Join<'a>
pub fn left_join(self, table: &'a str) -> Join<'a>
pub fn right_join(self, table: &'a str) -> Join<'a>
pub fn outer_join(self, table: &'a str) -> Join<'a>
pub fn where_by(self, left: &'a str, op: Op<'a>) -> Where<'a>
pub fn group_by(self, cols: Vec<&'a str>) -> Self
pub fn order_by(self, col: &'a str) -> Self
pub fn order_by_desc(self, col: &'a str) -> Self
pub fn having(self, left: &'a str, op: Op<'a>) -> Having<'a>
pub fn limit(self, num: u32) -> Self
pub fn offset(self, num: u32) -> Self
pub fn build(&self) -> String
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> UnsafeUnpin 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