[−][src]Struct mysql::QueryWithParams
Representaion of a prepared statement query.
See BinQuery
for details.
Fields
query: Q
params: P
Trait Implementations
impl<Q, I, P> BatchQuery for QueryWithParams<Q, I> where
Q: AsStatement,
I: IntoIterator<Item = P>,
P: Into<Params>,
[src]
Q: AsStatement,
I: IntoIterator<Item = P>,
P: Into<Params>,
pub fn batch<'a, 'b, 'c: 'b, C>(self, conn: C) -> Result<()> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
[src]
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
This methods corresponds to Queryable::exec_batch
.
impl<Q, P> BinQuery for QueryWithParams<Q, P> where
Q: AsStatement,
P: Into<Params>,
[src]
Q: AsStatement,
P: Into<Params>,
pub fn run<'a, 'b, 'c, C>(
self,
conn: C
) -> Result<QueryResult<'a, 'b, 'c, Binary>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
[src]
self,
conn: C
) -> Result<QueryResult<'a, 'b, 'c, Binary>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
pub fn first<'a, 'b, 'c: 'b, T, C>(self, conn: C) -> Result<Option<T>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
[src]
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
pub fn first_opt<'a, 'b, 'c: 'b, T, C>(
self,
conn: C
) -> Result<Option<StdResult<T, FromRowError>>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
[src]
self,
conn: C
) -> Result<Option<StdResult<T, FromRowError>>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
pub fn fetch<'a, 'b, 'c: 'b, T, C>(self, conn: C) -> Result<Vec<T>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
[src]
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
pub fn fetch_opt<'a, 'b, 'c: 'b, T, C>(
self,
conn: C
) -> Result<Vec<StdResult<T, FromRowError>>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
[src]
self,
conn: C
) -> Result<Vec<StdResult<T, FromRowError>>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
pub fn fold<'a, 'b, 'c: 'b, T, U, F, C>(
self,
conn: C,
init: U,
next: F
) -> Result<U> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
F: FnMut(U, T) -> U,
[src]
self,
conn: C,
init: U,
next: F
) -> Result<U> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
F: FnMut(U, T) -> U,
pub fn fold_opt<'a, 'b, 'c: 'b, T, U, F, C>(
self,
conn: C,
init: U,
next: F
) -> Result<U> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
F: FnMut(U, StdResult<T, FromRowError>) -> U,
[src]
self,
conn: C,
init: U,
next: F
) -> Result<U> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
F: FnMut(U, StdResult<T, FromRowError>) -> U,
pub fn map<'a, 'b, 'c: 'b, T, U, F, C>(self, conn: C, map: F) -> Result<Vec<U>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
F: FnMut(T) -> U,
[src]
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
F: FnMut(T) -> U,
pub fn map_opt<'a, 'b, 'c: 'b, T, U, F, C>(
self,
conn: C,
map: F
) -> Result<Vec<U>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
F: FnMut(StdResult<T, FromRowError>) -> U,
[src]
self,
conn: C,
map: F
) -> Result<Vec<U>> where
C: TryInto<ConnMut<'a, 'b, 'c>>,
Error: From<<C as TryInto<ConnMut<'a, 'b, 'c>>>::Error>,
T: FromRow,
F: FnMut(StdResult<T, FromRowError>) -> U,
impl<Q: Clone, P: Clone> Clone for QueryWithParams<Q, P>
[src]
pub fn clone(&self) -> QueryWithParams<Q, P>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Q: Debug, P: Debug> Debug for QueryWithParams<Q, P>
[src]
impl<Q: Eq, P: Eq> Eq for QueryWithParams<Q, P>
[src]
impl<Q: PartialEq, P: PartialEq> PartialEq<QueryWithParams<Q, P>> for QueryWithParams<Q, P>
[src]
pub fn eq(&self, other: &QueryWithParams<Q, P>) -> bool
[src]
pub fn ne(&self, other: &QueryWithParams<Q, P>) -> bool
[src]
impl<Q, P> StructuralEq for QueryWithParams<Q, P>
[src]
impl<Q, P> StructuralPartialEq for QueryWithParams<Q, P>
[src]
Auto Trait Implementations
impl<Q, P> RefUnwindSafe for QueryWithParams<Q, P> where
P: RefUnwindSafe,
Q: RefUnwindSafe,
P: RefUnwindSafe,
Q: RefUnwindSafe,
impl<Q, P> Send for QueryWithParams<Q, P> where
P: Send,
Q: Send,
P: Send,
Q: Send,
impl<Q, P> Sync for QueryWithParams<Q, P> where
P: Sync,
Q: Sync,
P: Sync,
Q: Sync,
impl<Q, P> Unpin for QueryWithParams<Q, P> where
P: Unpin,
Q: Unpin,
P: Unpin,
Q: Unpin,
impl<Q, P> UnwindSafe for QueryWithParams<Q, P> where
P: UnwindSafe,
Q: UnwindSafe,
P: UnwindSafe,
Q: 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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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.
pub 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>,