Struct typed_sql::query::select::SelectStatement[][src]

pub struct SelectStatement<S, Q> { /* fields omitted */ }

Implementations

impl<S: Selectable, Q> SelectStatement<S, Q>[src]

pub fn new(from: S, query: Q) -> Self[src]

Trait Implementations

impl<S: Clone, Q: Clone> Clone for SelectStatement<S, Q>[src]

fn clone(&self) -> SelectStatement<S, Q>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<S, Q> Select for SelectStatement<S, Q> where
    S: Selectable,
    Q: WriteQueryable
[src]

type Selectable = S

type Queryable = Q

impl<S, Q> ToSql for SelectStatement<S, Q> where
    S: Selectable,
    Q: WriteQueryable
[src]

fn write_sql_unchecked(&self, sql: &mut String)[src]

fn write_sql(&self, sql: &mut String) where
    Self: CheckedSql
[src]

fn to_sql_unchecked(&self) -> String[src]

fn to_sql(&self) -> String where
    Self: CheckedSql
[src]

impl<S, Q> CheckedSql for SelectStatement<S, Q>[src]

impl<S: Copy, Q: Copy> Copy for SelectStatement<S, Q>[src]

Auto Trait Implementations

impl<S, Q> RefUnwindSafe for SelectStatement<S, Q> where
    Q: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, Q> Send for SelectStatement<S, Q> where
    Q: Send,
    S: Send

impl<S, Q> Sync for SelectStatement<S, Q> where
    Q: Sync,
    S: Sync

impl<S, Q> Unpin for SelectStatement<S, Q> where
    Q: Unpin,
    S: Unpin

impl<S, Q> UnwindSafe for SelectStatement<S, Q> where
    Q: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<S> Filterable for S where
    S: Select
[src]

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Query for T[src]

fn prepare<F, S>(name: &str, f: F) -> Prepare<'_, Self, S> where
    Self: Binding,
    F: FnOnce(Self::Bindings) -> S,
    S: ToSql
[src]

Examples Read more

fn select(self) -> SelectStatement<Self, WildCard> where
    Self: Selectable
[src]

Examples Read more

fn query<Q>(self, query: Q) -> SelectStatement<Self, Q> where
    Self: Selectable,
    Q: WriteQueryable
[src]

Examples Read more

fn count<F, T>(self, f: F) -> SelectStatement<Self, Count<T>> where
    Self: Selectable,
    F: FnOnce(Self::Fields) -> T,
    Count<T>: WriteQueryable
[src]

Examples Read more

fn insert<I>(self, value: I) -> InsertStatement<Self::Table, I> where
    Self: TableQueryable,
    I: Insertable
[src]

fn insert_values<I>(self, values: I) -> InsertStatement<Self::Table, Values<I>> where
    Self: TableQueryable,
    I: IntoIterator + Clone,
    I::Item: Insertable
[src]

fn insert_select<S, I>(
    self,
    select: S
) -> InsertStatement<Self::Table, InsertSelect<S, I>> where
    Self: TableQueryable,
    S: Select,
    I: Insertable
[src]

fn update<F, S>(self, f: F) -> Update<Self::Table, S> where
    Self: TableQueryable,
    F: FnOnce(<Self::Table as Table>::Fields) -> S,
    S: UpdateSet
[src]

fn delete(self) -> Delete<Self::Table> where
    Self: TableQueryable
[src]

fn filter<F, P>(self, f: F) -> Filter<Self, P> where
    Self: Filterable,
    F: FnOnce(Self::Fields) -> P, 
[src]

fn and<P>(self, predicate: P) -> And<Self, P> where
    Self: Predicate,
    P: Predicate
[src]

fn or<P>(self, predicate: P) -> Or<Self, P> where
    Self: Predicate,
    P: Predicate
[src]

fn group_by<F, O>(self, f: F) -> GroupBy<Self, O> where
    Self: Select,
    F: FnOnce(<Self::Selectable as Selectable>::Fields) -> O,
    O: GroupOrder
[src]

Examples Read more

fn order_by<F, O>(self, f: F) -> OrderBy<Self, O> where
    Self: Select,
    F: FnOnce(<Self::Selectable as Selectable>::Fields) -> O,
    O: Order
[src]

Examples Read more

fn limit(self, limit: usize) -> Limit<Self> where
    Self: Select
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.