[][src]Struct sqlx::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) -> QueryAs<'q, DB, O> where
    T: Type<DB> + Encode<DB>, 
[src]

Bind a value for use with this SQL query.

Trait Implementations

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

impl<'q, O> MySqlQueryAs<'q, O> for QueryAs<'q, MySql, O>[src]

impl<'q, O> PgQueryAs<'q, O> for QueryAs<'q, Postgres, O>[src]

impl<'q, O> SqliteQueryAs<'q, O> for QueryAs<'q, Sqlite, O>[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> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,