[][src]Struct sqlx_core::query_as::QueryAs

#[must_use = "query must be executed to affect database"]pub struct QueryAs<'q, DB, O> where
    DB: Database
{ /* fields omitted */ }

Raw SQL query with bind parameters, mapped to a concrete type using FromRow. Returned by query_as.

Methods

impl<'q, DB, O> QueryAs<'q, DB, O> where
    DB: Database
[src]

pub fn bind<T>(self, value: T) -> Self where
    T: Type<DB>,
    T: Encode<DB>, 
[src]

Bind a value for use with this SQL query.

Trait Implementations

impl<'q, DB, O: Send> Execute<'q, DB> for QueryAs<'q, DB, O> where
    DB: Database
[src]

Auto Trait Implementations

impl<'q, DB, O> RefUnwindSafe for QueryAs<'q, DB, O> where
    DB: RefUnwindSafe,
    O: RefUnwindSafe,
    <DB as Database>::Arguments: RefUnwindSafe

impl<'q, DB, O> Send for QueryAs<'q, DB, O> where
    O: Send,
    <DB as Database>::Arguments: Send

impl<'q, DB, O> Sync for QueryAs<'q, DB, O> where
    DB: Sync,
    O: Sync,
    <DB as Database>::Arguments: Sync

impl<'q, DB, O> Unpin for QueryAs<'q, DB, O> where
    DB: Unpin,
    O: Unpin,
    <DB as Database>::Arguments: Unpin

impl<'q, DB, O> UnwindSafe for QueryAs<'q, DB, O> where
    DB: UnwindSafe,
    O: UnwindSafe,
    <DB as Database>::Arguments: UnwindSafe

Blanket Implementations

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

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

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

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

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

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.

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.