Struct sqlx::postgres::PgStatement [−][src]
pub struct PgStatement<'q> { /* fields omitted */ }
This is supported on crate feature
postgres
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_with<'s, A>(
&'s self,
arguments: A
) -> Query<'s, <PgStatement<'q> as Statement<'q>>::Database, A> where
A: IntoArguments<'s, <PgStatement<'q> as Statement<'q>>::Database>,
pub fn query_as<O>(
&self
) -> QueryAs<'_, <PgStatement<'q> as Statement<'q>>::Database, O, <<PgStatement<'q> as Statement<'q>>::Database as HasArguments<'_>>::Arguments> where
O: for<'r> FromRow<'r, <<PgStatement<'q> as Statement<'q>>::Database as Database>::Row>,
pub fn query_as_with<'s, O, A>(
&'s self,
arguments: A
) -> QueryAs<'s, <PgStatement<'q> as Statement<'q>>::Database, O, A> where
O: for<'r> FromRow<'r, <<PgStatement<'q> as Statement<'q>>::Database as Database>::Row>,
A: IntoArguments<'s, <PgStatement<'q> as Statement<'q>>::Database>,
pub fn query_scalar<O>(
&self
) -> QueryScalar<'_, <PgStatement<'q> as Statement<'q>>::Database, O, <<PgStatement<'q> as Statement<'q>>::Database as HasArguments<'_>>::Arguments> where
(O,): for<'r> FromRow<'r, <<PgStatement<'q> as Statement<'q>>::Database as Database>::Row>,
pub fn query_scalar_with<'s, O, A>(
&'s self,
arguments: A
) -> QueryScalar<'s, <PgStatement<'q> as Statement<'q>>::Database, O, A> where
A: IntoArguments<'s, <PgStatement<'q> as Statement<'q>>::Database>,
(O,): for<'r> FromRow<'r, <<PgStatement<'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 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
Mutably borrows from an owned value. Read more