pub struct MySqlStatement { /* private fields */ }
Trait Implementations§
Source§impl Clone for MySqlStatement
impl Clone for MySqlStatement
Source§fn clone(&self) -> MySqlStatement
fn clone(&self) -> MySqlStatement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ColumnIndex<MySqlStatement> for &str
impl ColumnIndex<MySqlStatement> for &str
Source§fn index(&self, statement: &MySqlStatement) -> Result<usize, Error>
fn index(&self, statement: &MySqlStatement) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds
, or,
ColumnNotFound
.Source§impl ColumnIndex<MySqlStatement> for usize
impl ColumnIndex<MySqlStatement> for usize
Source§fn index(&self, statement: &MySqlStatement) -> Result<usize, Error>
fn index(&self, statement: &MySqlStatement) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds
, or,
ColumnNotFound
.Source§impl Debug for MySqlStatement
impl Debug for MySqlStatement
Source§impl Statement for MySqlStatement
impl Statement for MySqlStatement
type Database = MySql
Source§fn to_owned(&self) -> MySqlStatement
fn to_owned(&self) -> MySqlStatement
Creates an owned statement from this statement reference. This copies
the original SQL text.
Source§fn parameters(&self) -> Option<Either<&[MySqlTypeInfo], usize>>
fn parameters(&self) -> Option<Either<&[MySqlTypeInfo], usize>>
Get the expected parameters for this statement. Read more
Source§fn columns(&self) -> &[MySqlColumn]
fn columns(&self) -> &[MySqlColumn]
Get the columns expected to be returned by executing this statement.
fn query(self) -> Query<Self::Database, MySqlArguments>
fn query_with<'s, A>(self, arguments: A) -> Query<Self::Database, A>where
A: IntoArguments<'s, Self::Database>,
fn query_as<O>( self, ) -> QueryAs<Self::Database, O, <Self::Database as HasArguments<'static>>::Arguments>
fn query_as_with<'s, O, A>(self, arguments: A) -> QueryAs<Self::Database, O, A>
fn query_scalar<O>( self, ) -> QueryScalar<Self::Database, O, <Self::Database as HasArguments<'static>>::Arguments>
fn query_scalar_with<'s, O, A>( self, arguments: A, ) -> QueryScalar<Self::Database, O, A>
Source§fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
Gets the column information at
index
. Read moreSource§fn try_column<I>(
&self,
index: I,
) -> Result<&<Self::Database as Database>::Column, Error>where
I: ColumnIndex<Self>,
fn try_column<I>(
&self,
index: I,
) -> Result<&<Self::Database as Database>::Column, Error>where
I: ColumnIndex<Self>,
Gets the column information at
index
or None
if out of bounds.Auto Trait Implementations§
impl Freeze for MySqlStatement
impl RefUnwindSafe for MySqlStatement
impl Send for MySqlStatement
impl Sync for MySqlStatement
impl Unpin for MySqlStatement
impl UnwindSafe for MySqlStatement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more