Struct sqlx::any::AnyStatement
source ยท pub struct AnyStatement<'q> { /* private fields */ }
Trait Implementationsยง
sourceยงimpl<'i> ColumnIndex<AnyStatement<'_>> for &'i str
impl<'i> ColumnIndex<AnyStatement<'_>> for &'i str
sourceยงfn index(&self, statement: &AnyStatement<'_>) -> Result<usize, Error>
fn index(&self, statement: &AnyStatement<'_>) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds
, or,
ColumnNotFound
.sourceยงimpl ColumnIndex<AnyStatement<'_>> for usize
impl ColumnIndex<AnyStatement<'_>> for usize
sourceยงfn index(&self, statement: &AnyStatement<'_>) -> Result<usize, Error>
fn index(&self, statement: &AnyStatement<'_>) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds
, or,
ColumnNotFound
.sourceยงimpl<'q> Statement<'q> for AnyStatement<'q>
impl<'q> Statement<'q> for AnyStatement<'q>
type Database = Any
sourceยงfn to_owned(&self) -> AnyStatement<'static>
fn to_owned(&self) -> AnyStatement<'static>
Creates an owned statement from this statement reference. This copies
the original SQL text.
sourceยงfn parameters(&self) -> Option<Either<&[AnyTypeInfo], usize>>
fn parameters(&self) -> Option<Either<&[AnyTypeInfo], usize>>
Get the expected parameters for this statement. Read more
sourceยงfn columns(&self) -> &[AnyColumn]
fn columns(&self) -> &[AnyColumn]
Get the columns expected to be returned by executing this statement.
fn query( &self, ) -> Query<'_, <AnyStatement<'q> as Statement<'q>>::Database, AnyArguments<'_>>
fn query_with<'s, A>( &'s self, arguments: A, ) -> Query<'s, <AnyStatement<'q> as Statement<'q>>::Database, A>
fn query_as<O>( &self, ) -> QueryAs<'_, <AnyStatement<'q> as Statement<'q>>::Database, O, <<AnyStatement<'q> as Statement<'q>>::Database as Database>::Arguments<'_>>
fn query_as_with<'s, O, A>(
&'s self,
arguments: A,
) -> QueryAs<'s, <AnyStatement<'q> as Statement<'q>>::Database, O, A>where
O: for<'r> FromRow<'r, <<AnyStatement<'q> as Statement<'q>>::Database as Database>::Row>,
A: IntoArguments<'s, <AnyStatement<'q> as Statement<'q>>::Database>,
fn query_scalar<O>( &self, ) -> QueryScalar<'_, <AnyStatement<'q> as Statement<'q>>::Database, O, <<AnyStatement<'q> as Statement<'q>>::Database as Database>::Arguments<'_>>
fn query_scalar_with<'s, O, A>(
&'s self,
arguments: A,
) -> QueryScalar<'s, <AnyStatement<'q> as Statement<'q>>::Database, O, A>where
(O,): for<'r> FromRow<'r, <<AnyStatement<'q> as Statement<'q>>::Database as Database>::Row>,
A: IntoArguments<'s, <AnyStatement<'q> as Statement<'q>>::Database>,
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 a ColumnIndexOutOfBounds
error if out of bounds.Auto Trait Implementationsยง
impl<'q> Freeze for AnyStatement<'q>
impl<'q> RefUnwindSafe for AnyStatement<'q>
impl<'q> Send for AnyStatement<'q>
impl<'q> Sync for AnyStatement<'q>
impl<'q> Unpin for AnyStatement<'q>
impl<'q> UnwindSafe for AnyStatement<'q>
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> Instrument for T
impl<T> Instrument for T
sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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