SelectQueryBuilder

Struct SelectQueryBuilder 

Source
pub struct SelectQueryBuilder<Select, From, Where, GroupBy, Having, OrderBy, Limit> { /* private fields */ }

Implementations§

Source§

impl<S> SelectQueryBuilder<S, NA, NA, NA, NA, NA, NA>

Source

pub fn from<From: DataSet>( self, from: From, ) -> SelectQueryBuilder<S, From, NA, NA, NA, NA, NA>

Source§

impl<S, F> SelectQueryBuilder<S, F, NA, NA, NA, NA, NA>

Source

pub fn where_condition<Where>( self, condition: Where, ) -> SelectQueryBuilder<S, F, Where, NA, NA, NA, NA>
where Where: Expression,

Source§

impl<S, F, W> SelectQueryBuilder<S, F, W, NA, NA, NA, NA>

Source

pub fn group_by<GroupBy>( self, group_by: GroupBy, ) -> SelectQueryBuilder<S, F, W, GroupBy, NA, NA, NA>
where GroupBy: Clone,

Source§

impl<S, F, W, G> SelectQueryBuilder<S, F, W, G, NA, NA, NA>

Source

pub fn having<Having: Expression>( self, having: Having, ) -> SelectQueryBuilder<S, F, W, G, Having, NA, NA>

Source§

impl<S, F, W, G, H> SelectQueryBuilder<S, F, W, G, H, NA, NA>

Source

pub fn order_by<OrderBy>( self, order_by: OrderBy, ) -> SelectQueryBuilder<S, F, W, G, H, OrderBy, NA>

Source§

impl<S, F, W, G, H, O> SelectQueryBuilder<S, F, W, G, H, O, NA>

Source

pub fn limit( self, limit: Option<u32>, ) -> SelectQueryBuilder<S, F, W, G, H, O, u32>

Source§

impl<S, From, W, G, H, O, L> SelectQueryBuilder<S, From, W, G, H, O, L>

Source

pub fn get_select(&self) -> impl Iterator<Item = impl Expression> + Clone

Source

pub fn get_from(&self) -> &Option<From>

Source

pub fn get_where_condition(&self) -> &Option<impl Expression>

Source

pub fn get_group_by(&self) -> impl Iterator<Item = impl Expression> + Clone

Source

pub fn get_having(&self) -> &Option<impl Expression>

Source

pub fn get_order_by(&self) -> impl Iterator<Item = impl Expression> + Clone

Source

pub fn get_limit(&self) -> Option<u32>

Source

pub fn build<D: Driver>(&self, driver: &D) -> String

Source

pub fn build_into<D: Driver>(&self, driver: &D, out: &mut DynQuery)

Trait Implementations§

Source§

impl<S, From, W, G, H, O, L> SelectQuery<From> for SelectQueryBuilder<S, From, W, G, H, O, L>

Source§

fn get_select(&self) -> impl Iterator<Item = impl Expression> + Clone

Source§

fn get_from(&self) -> &Option<From>

Source§

fn get_where_condition(&self) -> &Option<impl Expression>

Source§

fn get_group_by(&self) -> impl Iterator<Item = impl Expression> + Clone

Source§

fn get_having(&self) -> &Option<impl Expression>

Source§

fn get_order_by(&self) -> impl Iterator<Item = impl Expression> + Clone

Source§

fn get_limit(&self) -> Option<u32>

Source§

fn build<D: Driver>(&self, driver: &D) -> String

Source§

fn build_into<D: Driver>(&self, driver: &D, out: &mut DynQuery)

Auto Trait Implementations§

§

impl<Select, From, Where, GroupBy, Having, OrderBy, Limit> Freeze for SelectQueryBuilder<Select, From, Where, GroupBy, Having, OrderBy, Limit>
where Select: Freeze, From: Freeze, Where: Freeze, GroupBy: Freeze, Having: Freeze, OrderBy: Freeze,

§

impl<Select, From, Where, GroupBy, Having, OrderBy, Limit> RefUnwindSafe for SelectQueryBuilder<Select, From, Where, GroupBy, Having, OrderBy, Limit>
where Select: RefUnwindSafe, From: RefUnwindSafe, Where: RefUnwindSafe, GroupBy: RefUnwindSafe, Having: RefUnwindSafe, OrderBy: RefUnwindSafe, Limit: RefUnwindSafe,

§

impl<Select, From, Where, GroupBy, Having, OrderBy, Limit> Send for SelectQueryBuilder<Select, From, Where, GroupBy, Having, OrderBy, Limit>
where Select: Send, From: Send, Where: Send, GroupBy: Send, Having: Send, OrderBy: Send, Limit: Send,

§

impl<Select, From, Where, GroupBy, Having, OrderBy, Limit> Sync for SelectQueryBuilder<Select, From, Where, GroupBy, Having, OrderBy, Limit>
where Select: Sync, From: Sync, Where: Sync, GroupBy: Sync, Having: Sync, OrderBy: Sync, Limit: Sync,

§

impl<Select, From, Where, GroupBy, Having, OrderBy, Limit> Unpin for SelectQueryBuilder<Select, From, Where, GroupBy, Having, OrderBy, Limit>
where Select: Unpin, From: Unpin, Where: Unpin, GroupBy: Unpin, Having: Unpin, OrderBy: Unpin, Limit: Unpin,

§

impl<Select, From, Where, GroupBy, Having, OrderBy, Limit> UnwindSafe for SelectQueryBuilder<Select, From, Where, GroupBy, Having, OrderBy, Limit>
where Select: UnwindSafe, From: UnwindSafe, Where: UnwindSafe, GroupBy: UnwindSafe, Having: UnwindSafe, OrderBy: UnwindSafe, Limit: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.