Struct xql_sqlx_postgres::Postgres
[−]pub struct Postgres;
Expand description
PostgreSQL database driver.
Trait Implementations
impl Database for Postgres
impl Database for Postgres
type Connection = PgConnection
type Connection = PgConnection
The concrete Connection
implementation for this database.
type TransactionManager = PgTransactionManager
type TransactionManager = PgTransactionManager
The concrete TransactionManager
implementation for this database.
type QueryResult = PgQueryResult
type QueryResult = PgQueryResult
The concrete QueryResult
implementation for this database.
type Column = PgColumn
type Column = PgColumn
The concrete Column
implementation for this database.
type TypeInfo = PgTypeInfo
type TypeInfo = PgTypeInfo
The concrete TypeInfo
implementation for this database.
impl<'r, T> Decode<'r, Postgres> for Vec<T, Global> where
T: for<'a> Decode<'a, Postgres> + Type<Postgres>,
impl<'r, T> Decode<'r, Postgres> for Vec<T, Global> where
T: for<'a> Decode<'a, Postgres> + Type<Postgres>,
impl<'_, '_> Encode<'_, Postgres> for &'_ [u8]
impl<'_, '_> Encode<'_, Postgres> for &'_ [u8]
pub fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
pub fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
impl<'_> Encode<'_, Postgres> for Vec<u8, Global>
impl<'_> Encode<'_, Postgres> for Vec<u8, Global>
pub fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
pub fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
impl<'_, '_> Encode<'_, Postgres> for &'_ str
impl<'_, '_> Encode<'_, Postgres> for &'_ str
pub fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
pub fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
impl<'q, '_, T> Encode<'q, Postgres> for &'_ [T] where
T: Encode<'q, Postgres> + Type<Postgres>,
impl<'q, '_, T> Encode<'q, Postgres> for &'_ [T] where
T: Encode<'q, Postgres> + Type<Postgres>,
pub fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
pub fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
impl<'q, T> Encode<'q, Postgres> for Vec<T, Global> where
T: Encode<'q, Postgres>,
&'a [T]: for<'a> Encode<'q, Postgres>,
impl<'q, T> Encode<'q, Postgres> for Vec<T, Global> where
T: Encode<'q, Postgres>,
&'a [T]: for<'a> Encode<'q, Postgres>,
pub fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
pub fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
Writes the value of self
into buf
without moving self
. Read more
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
Writes the value of self
into buf
in the expected format for the database.
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
impl<'_> HasArguments<'_> for Postgres
impl<'_> HasArguments<'_> for Postgres
type Database = Postgres
type Arguments = PgArguments
type Arguments = PgArguments
The concrete Arguments
implementation for this database.
type ArgumentBuffer = PgArgumentBuffer
type ArgumentBuffer = PgArgumentBuffer
The concrete type used as a buffer for arguments while encoding.
impl<'q> HasStatement<'q> for Postgres
impl<'q> HasStatement<'q> for Postgres
impl<'r> HasValueRef<'r> for Postgres
impl<'r> HasValueRef<'r> for Postgres
impl<T> Type<Postgres> for [T] where
T: PgHasArrayType,
impl<T> Type<Postgres> for [T] where
T: PgHasArrayType,
pub fn compatible(ty: &PgTypeInfo) -> bool
pub fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl<T> Type<Postgres> for Vec<T, Global> where
T: PgHasArrayType,
impl<T> Type<Postgres> for Vec<T, Global> where
T: PgHasArrayType,
pub fn compatible(ty: &PgTypeInfo) -> bool
pub fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl Type<Postgres> for str
impl Type<Postgres> for str
pub fn compatible(ty: &PgTypeInfo) -> bool
pub fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl HasStatementCache for Postgres
Auto Trait Implementations
impl RefUnwindSafe for Postgres
impl Send for Postgres
impl Sync for Postgres
impl Unpin for Postgres
impl UnwindSafe for Postgres
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more