pub struct Sqlx(/* private fields */);
Expand description
Postgres driver implementation based on sqlx
.
Implementations§
Trait Implementations§
Source§impl Driver for Sqlx
impl Driver for Sqlx
Source§type Value<'a> = PgValueRef<'a>
type Value<'a> = PgValueRef<'a>
A single value in a row.
Source§type Output = PgQueryResult
type Output = PgQueryResult
The output of a query execution that doesn’t return rows.
Source§type ValueDecoder = DecodeImpl
type ValueDecoder = DecodeImpl
The value decoder for the driver. Refer to
DecodeValue
for more information.Source§fn get_value(
row: &Self::Row,
index: usize,
) -> Result<Self::Value<'_>, Self::Error>
fn get_value( row: &Self::Row, index: usize, ) -> Result<Self::Value<'_>, Self::Error>
Takes a value from the row.
Source§fn error_encoding_arguments(
err: Box<dyn Error + Send + Sync + 'static>,
) -> Self::Error
fn error_encoding_arguments( err: Box<dyn Error + Send + Sync + 'static>, ) -> Self::Error
Converts an error into the driver’s error type when encoding arguments fails.
Source§fn error_decoding_value(
err: Box<dyn Error + Send + Sync + 'static>,
) -> Self::Error
fn error_decoding_value( err: Box<dyn Error + Send + Sync + 'static>, ) -> Self::Error
Converts an error into the driver’s error type when decoding a value fails.
Auto Trait Implementations§
impl Freeze for Sqlx
impl !RefUnwindSafe for Sqlx
impl Send for Sqlx
impl Sync for Sqlx
impl Unpin for Sqlx
impl !UnwindSafe for Sqlx
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more