Struct sqlx_core::any::AnyStatement
source · pub struct AnyStatement<'q> { /* private fields */ }
Trait Implementations§
source§impl<'i> ColumnIndex<AnyStatement<'_>> for &'i strwhere
&'i str: AnyColumnIndex,
impl<'i> ColumnIndex<AnyStatement<'_>> for &'i strwhere &'i str: AnyColumnIndex,
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> From<MssqlStatement<'q>> for AnyStatement<'q>
impl<'q> From<MssqlStatement<'q>> for AnyStatement<'q>
source§fn from(statement: MssqlStatement<'q>) -> Self
fn from(statement: MssqlStatement<'q>) -> Self
Converts to this type from the input type.
source§impl<'q> From<MySqlStatement<'q>> for AnyStatement<'q>
impl<'q> From<MySqlStatement<'q>> for AnyStatement<'q>
source§fn from(statement: MySqlStatement<'q>) -> Self
fn from(statement: MySqlStatement<'q>) -> Self
Converts to this type from the input type.
source§impl<'q> From<PgStatement<'q>> for AnyStatement<'q>
impl<'q> From<PgStatement<'q>> for AnyStatement<'q>
source§fn from(statement: PgStatement<'q>) -> Self
fn from(statement: PgStatement<'q>) -> Self
Converts to this type from the input type.
source§impl<'q> From<SqliteStatement<'q>> for AnyStatement<'q>
impl<'q> From<SqliteStatement<'q>> for AnyStatement<'q>
source§fn from(statement: SqliteStatement<'q>) -> Self
fn from(statement: SqliteStatement<'q>) -> Self
Converts to this type from the input type.
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<'_, Self::Database, AnyArguments<'_>>
fn query_with<'s, A>(&'s self, arguments: A) -> Query<'s, Self::Database, A>where A: IntoArguments<'s, Self::Database>,
fn query_as<O>( &self ) -> QueryAs<'_, Self::Database, O, <Self::Database as HasArguments<'_>>::Arguments>where O: for<'r> FromRow<'r, <Self::Database as Database>::Row>,
fn query_as_with<'s, O, A>( &'s self, arguments: A ) -> QueryAs<'s, Self::Database, O, A>where O: for<'r> FromRow<'r, <Self::Database as Database>::Row>, A: IntoArguments<'s, Self::Database>,
fn query_scalar<O>( &self ) -> QueryScalar<'_, Self::Database, O, <Self::Database as HasArguments<'_>>::Arguments>where (O,): for<'r> FromRow<'r, <Self::Database as Database>::Row>,
fn query_scalar_with<'s, O, A>( &'s self, arguments: A ) -> QueryScalar<'s, Self::Database, O, A>where (O,): for<'r> FromRow<'r, <Self::Database as Database>::Row>, A: IntoArguments<'s, Self::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 None
if out of bounds.