Struct sqlx::mysql::MySqlStatement

source ·
pub struct MySqlStatement<'q> { /* private fields */ }
Available on crate feature mysql only.

Trait Implementations§

source§

impl<'q> Clone for MySqlStatement<'q>

source§

fn clone(&self) -> MySqlStatement<'q>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ColumnIndex<MySqlStatement<'_>> for &str

source§

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

source§

fn index(&self, statement: &MySqlStatement<'_>) -> Result<usize, Error>

Returns a valid positional index into the row or statement, ColumnIndexOutOfBounds, or, ColumnNotFound.
source§

impl<'q> Debug for MySqlStatement<'q>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'q> Statement<'q> for MySqlStatement<'q>

§

type Database = MySql

source§

fn to_owned(&self) -> MySqlStatement<'static>

Creates an owned statement from this statement reference. This copies the original SQL text.
source§

fn sql(&self) -> &str

Get the original SQL text used to create this statement.
source§

fn parameters(&self) -> Option<Either<&[MySqlTypeInfo], usize>>

Get the expected parameters for this statement. Read more
source§

fn columns(&self) -> &[MySqlColumn]

Get the columns expected to be returned by executing this statement.
source§

fn query( &self ) -> Query<'_, <MySqlStatement<'q> as Statement<'q>>::Database, MySqlArguments>

source§

fn query_with<'s, A>( &'s self, arguments: A ) -> Query<'s, <MySqlStatement<'q> as Statement<'q>>::Database, A>
where A: IntoArguments<'s, <MySqlStatement<'q> as Statement<'q>>::Database>,

source§

fn query_as<O>( &self ) -> QueryAs<'_, <MySqlStatement<'q> as Statement<'q>>::Database, O, <<MySqlStatement<'q> as Statement<'q>>::Database as HasArguments<'_>>::Arguments>
where O: for<'r> FromRow<'r, <<MySqlStatement<'q> as Statement<'q>>::Database as Database>::Row>,

source§

fn query_as_with<'s, O, A>( &'s self, arguments: A ) -> QueryAs<'s, <MySqlStatement<'q> as Statement<'q>>::Database, O, A>
where O: for<'r> FromRow<'r, <<MySqlStatement<'q> as Statement<'q>>::Database as Database>::Row>, A: IntoArguments<'s, <MySqlStatement<'q> as Statement<'q>>::Database>,

source§

fn query_scalar<O>( &self ) -> QueryScalar<'_, <MySqlStatement<'q> as Statement<'q>>::Database, O, <<MySqlStatement<'q> as Statement<'q>>::Database as HasArguments<'_>>::Arguments>
where (O,): for<'r> FromRow<'r, <<MySqlStatement<'q> as Statement<'q>>::Database as Database>::Row>,

source§

fn query_scalar_with<'s, O, A>( &'s self, arguments: A ) -> QueryScalar<'s, <MySqlStatement<'q> as Statement<'q>>::Database, O, A>
where (O,): for<'r> FromRow<'r, <<MySqlStatement<'q> as Statement<'q>>::Database as Database>::Row>, A: IntoArguments<'s, <MySqlStatement<'q> as Statement<'q>>::Database>,

source§

fn column<I>(&self, index: I) -> &<Self::Database as Database>::Column
where I: ColumnIndex<Self>,

Gets the column information at index. Read more
source§

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 a ColumnIndexOutOfBounds error if out of bounds.

Auto Trait Implementations§

§

impl<'q> Freeze for MySqlStatement<'q>

§

impl<'q> RefUnwindSafe for MySqlStatement<'q>

§

impl<'q> Send for MySqlStatement<'q>

§

impl<'q> Sync for MySqlStatement<'q>

§

impl<'q> Unpin for MySqlStatement<'q>

§

impl<'q> UnwindSafe for MySqlStatement<'q>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

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

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more