Struct sqlx_core::postgres::PgStatement
source · [−]pub struct PgStatement<'q> { /* private fields */ }
Trait Implementations
sourceimpl<'q> Clone for PgStatement<'q>
impl<'q> Clone for PgStatement<'q>
sourcefn clone(&self) -> PgStatement<'q>
fn clone(&self) -> PgStatement<'q>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ColumnIndex<PgStatement<'_>> for &str
impl ColumnIndex<PgStatement<'_>> for &str
sourcefn index(&self, statement: &PgStatement<'_>) -> Result<usize, Error>
fn index(&self, statement: &PgStatement<'_>) -> Result<usize, Error>
Returns a valid positional index into the row or statement, ColumnIndexOutOfBounds
, or,
ColumnNotFound
. Read more
sourceimpl ColumnIndex<PgStatement<'_>> for usize
impl ColumnIndex<PgStatement<'_>> for usize
sourcefn index(&self, statement: &PgStatement<'_>) -> Result<usize, Error>
fn index(&self, statement: &PgStatement<'_>) -> Result<usize, Error>
Returns a valid positional index into the row or statement, ColumnIndexOutOfBounds
, or,
ColumnNotFound
. Read more
sourceimpl<'q> Debug for PgStatement<'q>
impl<'q> Debug for PgStatement<'q>
sourceimpl<'q> Statement<'q> for PgStatement<'q>
impl<'q> Statement<'q> for PgStatement<'q>
type Database = Postgres
sourcefn to_owned(&self) -> PgStatement<'static>
fn to_owned(&self) -> PgStatement<'static>
Creates an owned statement from this statement reference. This copies the original SQL text. Read more
sourcefn parameters(&self) -> Option<Either<&[PgTypeInfo], usize>>
fn parameters(&self) -> Option<Either<&[PgTypeInfo], usize>>
Get the expected parameters for this statement. Read more
sourcefn columns(&self) -> &[PgColumn]
fn columns(&self) -> &[PgColumn]
Get the columns expected to be returned by executing this statement.
fn query(&self) -> Query<'_, Self::Database, PgArguments>
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>,
sourcefn column<I>(&self, index: I) -> &<Self::Database as Database>::Column where
I: ColumnIndex<Self>,
fn column<I>(&self, index: I) -> &<Self::Database as Database>::Column where
I: ColumnIndex<Self>,
Gets the column information at index
. Read more
sourcefn 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 PgStatement<'q>
impl<'q> Send for PgStatement<'q>
impl<'q> Sync for PgStatement<'q>
impl<'q> Unpin for PgStatement<'q>
impl<'q> UnwindSafe for PgStatement<'q>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more