Struct sqlx_sqlite::SqliteStatement
source · pub struct SqliteStatement<'q> { /* private fields */ }
Trait Implementations§
source§impl<'q> Clone for SqliteStatement<'q>
impl<'q> Clone for SqliteStatement<'q>
source§fn clone(&self) -> SqliteStatement<'q>
fn clone(&self) -> SqliteStatement<'q>
Returns a copy 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<SqliteStatement<'_>> for &str
impl ColumnIndex<SqliteStatement<'_>> for &str
source§fn index(&self, statement: &SqliteStatement<'_>) -> Result<usize, Error>
fn index(&self, statement: &SqliteStatement<'_>) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds
, or,
ColumnNotFound
.source§impl ColumnIndex<SqliteStatement<'_>> for usize
impl ColumnIndex<SqliteStatement<'_>> for usize
source§fn index(&self, statement: &SqliteStatement<'_>) -> Result<usize, Error>
fn index(&self, statement: &SqliteStatement<'_>) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds
, or,
ColumnNotFound
.source§impl<'q> Debug for SqliteStatement<'q>
impl<'q> Debug for SqliteStatement<'q>
source§impl<'q> Statement<'q> for SqliteStatement<'q>
impl<'q> Statement<'q> for SqliteStatement<'q>
type Database = Sqlite
source§fn to_owned(&self) -> SqliteStatement<'static>
fn to_owned(&self) -> SqliteStatement<'static>
Creates an owned statement from this statement reference. This copies
the original SQL text.
source§fn parameters(&self) -> Option<Either<&[SqliteTypeInfo], usize>>
fn parameters(&self) -> Option<Either<&[SqliteTypeInfo], usize>>
Get the expected parameters for this statement. Read more
source§fn columns(&self) -> &[SqliteColumn]
fn columns(&self) -> &[SqliteColumn]
Get the columns expected to be returned by executing this statement.
fn query(&self) -> Query<'_, Self::Database, SqliteArguments<'_>>
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>
fn query_as_with<'s, O, A>( &'s self, arguments: A ) -> QueryAs<'s, Self::Database, O, A>
fn query_scalar<O>( &self ) -> QueryScalar<'_, Self::Database, O, <Self::Database as HasArguments<'_>>::Arguments>
fn query_scalar_with<'s, O, A>( &'s self, arguments: A ) -> QueryScalar<'s, 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 a ColumnIndexOutOfBounds
error if out of bounds.Auto Trait Implementations§
impl<'q> Freeze for SqliteStatement<'q>
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§
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