[−][src]Struct sqlx::QueryAs
Methods
impl<'q, DB, O> QueryAs<'q, DB, O> where
DB: Database,
[src]
DB: Database,
pub fn bind<T>(self, value: T) -> QueryAs<'q, DB, O> where
T: Type<DB> + Encode<DB>,
[src]
T: Type<DB> + Encode<DB>,
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]
DB: Database,
O: Send,
impl<'q, O> MySqlQueryAs<'q, O> for QueryAs<'q, MySql, O>
[src]
fn fetch<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Stream<Item = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = MySql>,
O: 'e + Send + Unpin + FromRow<'c, MySqlRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Stream<Item = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = MySql>,
O: 'e + Send + Unpin + FromRow<'c, MySqlRow<'c>>,
fn fetch_optional<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Option<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = MySql>,
O: 'e + Send + FromRow<'c, MySqlRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Option<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = MySql>,
O: 'e + Send + FromRow<'c, MySqlRow<'c>>,
fn fetch_one<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = MySql>,
O: 'e + Send + FromRow<'c, MySqlRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = MySql>,
O: 'e + Send + FromRow<'c, MySqlRow<'c>>,
fn fetch_all<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Vec<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = MySql>,
O: 'e + Send + FromRow<'c, MySqlRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Vec<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = MySql>,
O: 'e + Send + FromRow<'c, MySqlRow<'c>>,
impl<'q, O> PgQueryAs<'q, O> for QueryAs<'q, Postgres, O>
[src]
fn fetch<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Stream<Item = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Postgres>,
O: 'e + Send + Unpin + FromRow<'c, PgRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Stream<Item = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Postgres>,
O: 'e + Send + Unpin + FromRow<'c, PgRow<'c>>,
fn fetch_optional<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Option<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Postgres>,
O: 'e + Send + FromRow<'c, PgRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Option<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Postgres>,
O: 'e + Send + FromRow<'c, PgRow<'c>>,
fn fetch_one<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Postgres>,
O: 'e + Send + FromRow<'c, PgRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Postgres>,
O: 'e + Send + FromRow<'c, PgRow<'c>>,
fn fetch_all<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Vec<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Postgres>,
O: 'e + Send + FromRow<'c, PgRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Vec<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Postgres>,
O: 'e + Send + FromRow<'c, PgRow<'c>>,
impl<'q, O> SqliteQueryAs<'q, O> for QueryAs<'q, Sqlite, O>
[src]
fn fetch<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Stream<Item = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Sqlite>,
O: 'e + Send + Unpin + FromRow<'c, SqliteRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Stream<Item = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Sqlite>,
O: 'e + Send + Unpin + FromRow<'c, SqliteRow<'c>>,
fn fetch_optional<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Option<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Sqlite>,
O: 'e + Send + FromRow<'c, SqliteRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Option<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Sqlite>,
O: 'e + Send + FromRow<'c, SqliteRow<'c>>,
fn fetch_one<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Sqlite>,
O: 'e + Send + FromRow<'c, SqliteRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<O, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Sqlite>,
O: 'e + Send + FromRow<'c, SqliteRow<'c>>,
fn fetch_all<'e, E>(
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Vec<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Sqlite>,
O: 'e + Send + FromRow<'c, SqliteRow<'c>>,
[src]
self,
executor: E
) -> Pin<Box<dyn Future<Output = Result<Vec<O>, Error>> + 'e + Send>> where
'q: 'e,
E: 'e + Send + RefExecutor<'e, Database = Sqlite>,
O: 'e + Send + FromRow<'c, SqliteRow<'c>>,
Auto Trait Implementations
impl<'q, DB, O> RefUnwindSafe for QueryAs<'q, DB, O> where
DB: RefUnwindSafe,
O: RefUnwindSafe,
<DB as Database>::Arguments: RefUnwindSafe,
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,
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,
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,
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,
DB: UnwindSafe,
O: UnwindSafe,
<DB as Database>::Arguments: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,