Struct sqlx::sqlite::SqliteStatement [−][src]
pub struct SqliteStatement<'q> { /* fields omitted */ }
This is supported on crate feature
sqlite
only.Trait Implementations
Returns a valid positional index into the row or statement, ColumnIndexOutOfBounds
, or,
ColumnNotFound
. Read more
Returns a valid positional index into the row or statement, ColumnIndexOutOfBounds
, or,
ColumnNotFound
. Read more
Performs the conversion.
Creates an owned statement from this statement reference. This copies the original SQL text. Read more
Get the expected parameters for this statement. Read more
Get the columns expected to be returned by executing this statement.
pub fn query(
&self
) -> Query<'_, <SqliteStatement<'q> as Statement<'q>>::Database, SqliteArguments<'_>>
pub fn query_with<'s, A>(
&'s self,
arguments: A
) -> Query<'s, <SqliteStatement<'q> as Statement<'q>>::Database, A> where
A: IntoArguments<'s, <SqliteStatement<'q> as Statement<'q>>::Database>,
pub fn query_as<O>(
&self
) -> QueryAs<'_, <SqliteStatement<'q> as Statement<'q>>::Database, O, <<SqliteStatement<'q> as Statement<'q>>::Database as HasArguments<'_>>::Arguments> where
O: for<'r> FromRow<'r, <<SqliteStatement<'q> as Statement<'q>>::Database as Database>::Row>,
pub fn query_as_with<'s, O, A>(
&'s self,
arguments: A
) -> QueryAs<'s, <SqliteStatement<'q> as Statement<'q>>::Database, O, A> where
O: for<'r> FromRow<'r, <<SqliteStatement<'q> as Statement<'q>>::Database as Database>::Row>,
A: IntoArguments<'s, <SqliteStatement<'q> as Statement<'q>>::Database>,
pub fn query_scalar<O>(
&self
) -> QueryScalar<'_, <SqliteStatement<'q> as Statement<'q>>::Database, O, <<SqliteStatement<'q> as Statement<'q>>::Database as HasArguments<'_>>::Arguments> where
(O,): for<'r> FromRow<'r, <<SqliteStatement<'q> as Statement<'q>>::Database as Database>::Row>,
pub fn query_scalar_with<'s, O, A>(
&'s self,
arguments: A
) -> QueryScalar<'s, <SqliteStatement<'q> as Statement<'q>>::Database, O, A> where
A: IntoArguments<'s, <SqliteStatement<'q> as Statement<'q>>::Database>,
(O,): for<'r> FromRow<'r, <<SqliteStatement<'q> as Statement<'q>>::Database as Database>::Row>,
Gets the column information at index
. Read more
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<'q> RefUnwindSafe for SqliteStatement<'q>
impl<'q> Send for SqliteStatement<'q>
impl<'q> Sync for SqliteStatement<'q>
impl<'q> Unpin for SqliteStatement<'q>
impl<'q> UnwindSafe for SqliteStatement<'q>
Blanket Implementations
Mutably borrows from an owned value. Read more