pub struct Postgres;Expand description
PostgreSQL database driver.
Trait Implementations§
Source§impl Database for Postgres
 
impl Database for Postgres
Source§const URL_SCHEMES: &'static [&'static str]
 
const URL_SCHEMES: &'static [&'static str]
The schemes for database URLs that should match this driver.
Source§type Connection = PgConnection
 
type Connection = PgConnection
The concrete 
Connection implementation for this database.Source§type TransactionManager = PgTransactionManager
 
type TransactionManager = PgTransactionManager
The concrete 
TransactionManager implementation for this database.Source§type QueryResult = PgQueryResult
 
type QueryResult = PgQueryResult
The concrete 
QueryResult implementation for this database.Source§type TypeInfo = PgTypeInfo
 
type TypeInfo = PgTypeInfo
The concrete 
TypeInfo implementation for this database.Source§type Value = PgValue
 
type Value = PgValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was
received from the database.
Source§type ValueRef<'r> = PgValueRef<'r>
 
type ValueRef<'r> = PgValueRef<'r>
The concrete type used to hold a reference to the not-yet-decoded value that has just been
received from the database.
Source§type Arguments = PgArguments
 
type Arguments = PgArguments
The concrete 
Arguments implementation for this database.Source§type ArgumentBuffer = PgArgumentBuffer
 
type ArgumentBuffer = PgArgumentBuffer
The concrete type used as a buffer for arguments while encoding.
Source§type Statement = PgStatement
 
type Statement = PgStatement
The concrete 
Statement implementation for this database.Source§impl<const N: usize> Decode<'_, Postgres> for [u8; N]
 
impl<const N: usize> Decode<'_, Postgres> for [u8; N]
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for Oid
 
impl Decode<'_, Postgres> for Oid
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for PgCiText
 
impl Decode<'_, Postgres> for PgCiText
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for PgMoney
 
impl Decode<'_, Postgres> for PgMoney
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for String
 
impl Decode<'_, Postgres> for String
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for Vec<u8>
 
impl Decode<'_, Postgres> for Vec<u8>
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for bool
 
impl Decode<'_, Postgres> for bool
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for f32
 
impl Decode<'_, Postgres> for f32
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for f64
 
impl Decode<'_, Postgres> for f64
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for i16
 
impl Decode<'_, Postgres> for i16
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for i32
 
impl Decode<'_, Postgres> for i32
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for i64
 
impl Decode<'_, Postgres> for i64
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Decode<'_, Postgres> for i8
 
impl Decode<'_, Postgres> for i8
Source§fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'_>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'de> Decode<'de, Postgres> for PgInterval
 
impl<'de> Decode<'de, Postgres> for PgInterval
Source§fn decode(value: PgValueRef<'de>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'de>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Postgres> for &'r [u8]
 
impl<'r> Decode<'r, Postgres> for &'r [u8]
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Postgres> for &'r str
 
impl<'r> Decode<'r, Postgres> for &'r str
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T, const N: usize> Decode<'r, Postgres> for [T; N]
 
impl<'r, T, const N: usize> Decode<'r, Postgres> for [T; N]
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Postgres> for ()
 
impl<'r> Decode<'r, Postgres> for ()
Source§fn decode(_value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(_value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T1> Decode<'r, Postgres> for (T1,)
 
impl<'r, T1> Decode<'r, Postgres> for (T1,)
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T1, T2> Decode<'r, Postgres> for (T1, T2)
 
impl<'r, T1, T2> Decode<'r, Postgres> for (T1, T2)
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T1, T2, T3> Decode<'r, Postgres> for (T1, T2, T3)
 
impl<'r, T1, T2, T3> Decode<'r, Postgres> for (T1, T2, T3)
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T1, T2, T3, T4> Decode<'r, Postgres> for (T1, T2, T3, T4)
 
impl<'r, T1, T2, T3, T4> Decode<'r, Postgres> for (T1, T2, T3, T4)
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T1, T2, T3, T4, T5> Decode<'r, Postgres> for (T1, T2, T3, T4, T5)
 
impl<'r, T1, T2, T3, T4, T5> Decode<'r, Postgres> for (T1, T2, T3, T4, T5)
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T1, T2, T3, T4, T5, T6> Decode<'r, Postgres> for (T1, T2, T3, T4, T5, T6)where
    T1: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T2: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T3: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T4: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T5: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T6: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
 
impl<'r, T1, T2, T3, T4, T5, T6> Decode<'r, Postgres> for (T1, T2, T3, T4, T5, T6)where
    T1: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T2: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T3: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T4: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T5: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T6: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T1, T2, T3, T4, T5, T6, T7> Decode<'r, Postgres> for (T1, T2, T3, T4, T5, T6, T7)where
    T1: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T2: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T3: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T4: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T5: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T6: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T7: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
 
impl<'r, T1, T2, T3, T4, T5, T6, T7> Decode<'r, Postgres> for (T1, T2, T3, T4, T5, T6, T7)where
    T1: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T2: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T3: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T4: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T5: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T6: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T7: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T1, T2, T3, T4, T5, T6, T7, T8> Decode<'r, Postgres> for (T1, T2, T3, T4, T5, T6, T7, T8)where
    T1: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T2: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T3: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T4: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T5: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T6: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T7: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T8: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
 
impl<'r, T1, T2, T3, T4, T5, T6, T7, T8> Decode<'r, Postgres> for (T1, T2, T3, T4, T5, T6, T7, T8)where
    T1: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T2: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T3: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T4: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T5: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T6: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T7: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T8: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T1, T2, T3, T4, T5, T6, T7, T8, T9> Decode<'r, Postgres> for (T1, T2, T3, T4, T5, T6, T7, T8, T9)where
    T1: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T2: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T3: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T4: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T5: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T6: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T7: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T8: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T9: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
 
impl<'r, T1, T2, T3, T4, T5, T6, T7, T8, T9> Decode<'r, Postgres> for (T1, T2, T3, T4, T5, T6, T7, T8, T9)where
    T1: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T2: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T3: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T4: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T5: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T6: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T7: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T8: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
    T9: 'r + Type<Postgres> + for<'a> Decode<'a, Postgres>,
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T> Decode<'r, Postgres> for Json<T>where
    T: Deserialize<'r> + 'r,
 
impl<'r, T> Decode<'r, Postgres> for Json<T>where
    T: Deserialize<'r> + 'r,
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Postgres> for PgHstore
 
impl<'r> Decode<'r, Postgres> for PgHstore
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Postgres> for PgLQuery
 
impl<'r> Decode<'r, Postgres> for PgLQuery
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r> Decode<'r, Postgres> for PgLTree
 
impl<'r> Decode<'r, Postgres> for PgLTree
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T> Decode<'r, Postgres> for PgRange<T>
 
impl<'r, T> Decode<'r, Postgres> for PgRange<T>
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T> Decode<'r, Postgres> for Text<T>
 
impl<'r, T> Decode<'r, Postgres> for Text<T>
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl<'r, T> Decode<'r, Postgres> for Vec<T>
 
impl<'r, T> Decode<'r, Postgres> for Vec<T>
Source§fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
 
fn decode(value: PgValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
Source§impl Encode<'_, Postgres> for &[u8]
 
impl Encode<'_, Postgres> for &[u8]
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for &str
 
impl Encode<'_, Postgres> for &str
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<const N: usize> Encode<'_, Postgres> for [u8; N]
 
impl<const N: usize> Encode<'_, Postgres> for [u8; N]
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for Duration
 
impl Encode<'_, Postgres> for Duration
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Source§impl<T> Encode<'_, Postgres> for Json<T>where
    T: Serialize,
 
impl<T> Encode<'_, Postgres> for Json<T>where
    T: Serialize,
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for Oid
 
impl Encode<'_, Postgres> for Oid
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for PgBox
 
impl Encode<'_, Postgres> for PgBox
fn produces(&self) -> Option<PgTypeInfo>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Postgres> for PgCiText
 
impl Encode<'_, Postgres> for PgCiText
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for PgCircle
 
impl Encode<'_, Postgres> for PgCircle
fn produces(&self) -> Option<PgTypeInfo>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Postgres> for PgCube
 
impl Encode<'_, Postgres> for PgCube
fn produces(&self) -> Option<PgTypeInfo>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
Source§impl Encode<'_, Postgres> for PgHstore
 
impl Encode<'_, Postgres> for PgHstore
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for PgInterval
 
impl Encode<'_, Postgres> for PgInterval
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
Source§impl Encode<'_, Postgres> for PgLQuery
 
impl Encode<'_, Postgres> for PgLQuery
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for PgLSeg
 
impl Encode<'_, Postgres> for PgLSeg
fn produces(&self) -> Option<PgTypeInfo>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Postgres> for PgLTree
 
impl Encode<'_, Postgres> for PgLTree
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for PgLine
 
impl Encode<'_, Postgres> for PgLine
fn produces(&self) -> Option<PgTypeInfo>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Postgres> for PgMoney
 
impl Encode<'_, Postgres> for PgMoney
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for PgPath
 
impl Encode<'_, Postgres> for PgPath
fn produces(&self) -> Option<PgTypeInfo>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Postgres> for PgPoint
 
impl Encode<'_, Postgres> for PgPoint
fn produces(&self) -> Option<PgTypeInfo>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl Encode<'_, Postgres> for PgPolygon
 
impl Encode<'_, Postgres> for PgPolygon
fn produces(&self) -> Option<PgTypeInfo>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn size_hint(&self) -> usize
Source§impl<T> Encode<'_, Postgres> for Text<T>where
    T: Display,
 
impl<T> Encode<'_, Postgres> for Text<T>where
    T: Display,
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for Vec<u8>
 
impl Encode<'_, Postgres> for Vec<u8>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for bool
 
impl Encode<'_, Postgres> for bool
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for f32
 
impl Encode<'_, Postgres> for f32
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for f64
 
impl Encode<'_, Postgres> for f64
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for i16
 
impl Encode<'_, Postgres> for i16
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for i32
 
impl Encode<'_, Postgres> for i32
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for i64
 
impl Encode<'_, Postgres> for i64
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl Encode<'_, Postgres> for i8
 
impl Encode<'_, Postgres> for i8
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q, T> Encode<'q, Postgres> for &[T]
 
impl<'q, T> Encode<'q, Postgres> for &[T]
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q, T, const N: usize> Encode<'q, Postgres> for [T; N]
 
impl<'q, T, const N: usize> Encode<'q, Postgres> for [T; N]
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q> Encode<'q, Postgres> for Arc<[u8]>
 
impl<'q> Encode<'q, Postgres> for Arc<[u8]>
Source§fn encode_by_ref(
    &self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q> Encode<'q, Postgres> for Arc<str>
 
impl<'q> Encode<'q, Postgres> for Arc<str>
Source§fn encode_by_ref(
    &self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q> Encode<'q, Postgres> for Box<[u8]>
 
impl<'q> Encode<'q, Postgres> for Box<[u8]>
Source§fn encode_by_ref(
    &self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q> Encode<'q, Postgres> for Box<str>
 
impl<'q> Encode<'q, Postgres> for Box<str>
Source§fn encode_by_ref(
    &self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q> Encode<'q, Postgres> for Cow<'_, [u8]>
 
impl<'q> Encode<'q, Postgres> for Cow<'_, [u8]>
Source§fn encode_by_ref(
    &self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q> Encode<'q, Postgres> for Cow<'_, str>
 
impl<'q> Encode<'q, Postgres> for Cow<'_, str>
Source§fn encode_by_ref(
    &self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q, T> Encode<'q, Postgres> for Option<T>
 
impl<'q, T> Encode<'q, Postgres> for Option<T>
fn produces(&self) -> Option<<Postgres as Database>::TypeInfo>
Source§fn encode(
    self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode( self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Writes the value of 
self into buf in the expected format for the database.Source§fn encode_by_ref(
    &self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
fn size_hint(&self) -> usize
Source§impl<'q, T> Encode<'q, Postgres> for PgRange<T>
 
impl<'q, T> Encode<'q, Postgres> for PgRange<T>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q> Encode<'q, Postgres> for Rc<[u8]>
 
impl<'q> Encode<'q, Postgres> for Rc<[u8]>
Source§fn encode_by_ref(
    &self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q> Encode<'q, Postgres> for Rc<str>
 
impl<'q> Encode<'q, Postgres> for Rc<str>
Source§fn encode_by_ref(
    &self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q> Encode<'q, Postgres> for String
 
impl<'q> Encode<'q, Postgres> for String
Source§fn encode_by_ref(
    &self,
    buf: &mut <Postgres as Database>::ArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut <Postgres as Database>::ArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<'q, T> Encode<'q, Postgres> for Vec<T>
 
impl<'q, T> Encode<'q, Postgres> for Vec<T>
Source§fn encode_by_ref(
    &self,
    buf: &mut PgArgumentBuffer,
) -> Result<IsNull, BoxDynError>
 
fn encode_by_ref( &self, buf: &mut PgArgumentBuffer, ) -> Result<IsNull, BoxDynError>
Source§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
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
Source§impl<T> Type<Postgres> for [T]where
    T: PgHasArrayType,
 
impl<T> Type<Postgres> for [T]where
    T: PgHasArrayType,
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl<T, const N: usize> Type<Postgres> for [T; N]where
    T: PgHasArrayType,
 
impl<T, const N: usize> Type<Postgres> for [T; N]where
    T: PgHasArrayType,
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Postgres> for ()
 
impl Type<Postgres> for ()
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl<T1, T2, T3> Type<Postgres> for (T1, T2, T3)
 
impl<T1, T2, T3> Type<Postgres> for (T1, T2, T3)
Source§impl<T1, T2, T3, T4> Type<Postgres> for (T1, T2, T3, T4)
 
impl<T1, T2, T3, T4> Type<Postgres> for (T1, T2, T3, T4)
Source§impl<T1, T2, T3, T4, T5> Type<Postgres> for (T1, T2, T3, T4, T5)
 
impl<T1, T2, T3, T4, T5> Type<Postgres> for (T1, T2, T3, T4, T5)
Source§impl<T1, T2, T3, T4, T5, T6> Type<Postgres> for (T1, T2, T3, T4, T5, T6)
 
impl<T1, T2, T3, T4, T5, T6> Type<Postgres> for (T1, T2, T3, T4, T5, T6)
Source§impl<T1, T2, T3, T4, T5, T6, T7> Type<Postgres> for (T1, T2, T3, T4, T5, T6, T7)
 
impl<T1, T2, T3, T4, T5, T6, T7> Type<Postgres> for (T1, T2, T3, T4, T5, T6, T7)
Source§impl<T1, T2, T3, T4, T5, T6, T7, T8> Type<Postgres> for (T1, T2, T3, T4, T5, T6, T7, T8)
 
impl<T1, T2, T3, T4, T5, T6, T7, T8> Type<Postgres> for (T1, T2, T3, T4, T5, T6, T7, T8)
Source§impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> Type<Postgres> for (T1, T2, T3, T4, T5, T6, T7, T8, T9)
 
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> Type<Postgres> for (T1, T2, T3, T4, T5, T6, T7, T8, T9)
Source§impl<T> Type<Postgres> for Json<T>
 
impl<T> Type<Postgres> for Json<T>
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Postgres> for PgCiText
 
impl Type<Postgres> for PgCiText
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Postgres> for PgInterval
 
impl Type<Postgres> for PgInterval
Source§impl Type<Postgres> for PgRange<i32>
 
impl Type<Postgres> for PgRange<i32>
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Postgres> for PgRange<i64>
 
impl Type<Postgres> for PgRange<i64>
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Postgres> for String
 
impl Type<Postgres> for String
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl<T> Type<Postgres> for Text<T>
 
impl<T> Type<Postgres> for Text<T>
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl<T> Type<Postgres> for Vec<T>where
    T: PgHasArrayType,
 
impl<T> Type<Postgres> for Vec<T>where
    T: PgHasArrayType,
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl Type<Postgres> for str
 
impl Type<Postgres> for str
Source§fn type_info() -> PgTypeInfo
 
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
Source§fn compatible(ty: &PgTypeInfo) -> bool
 
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
Source§impl TypeChecking for Postgres
 
impl TypeChecking for Postgres
Source§const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Strong
 
const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Strong
Describes how the database in question typechecks query parameters.
Source§fn param_type_for_id(
    info: &Self::TypeInfo,
    preferred_crates: &PreferredCrates,
) -> Result<&'static str, Error>
 
fn param_type_for_id( info: &Self::TypeInfo, preferred_crates: &PreferredCrates, ) -> Result<&'static str, Error>
Get the full path of the Rust type that corresponds to the given 
TypeInfo, if applicable. Read moreSource§fn return_type_for_id(
    info: &Self::TypeInfo,
    preferred_crates: &PreferredCrates,
) -> Result<&'static str, Error>
 
fn return_type_for_id( info: &Self::TypeInfo, preferred_crates: &PreferredCrates, ) -> Result<&'static str, Error>
Get the full path of the Rust type that corresponds to the given 
TypeInfo, if applicable. Read moreimpl HasStatementCache for Postgres
Auto Trait Implementations§
impl Freeze for Postgres
impl RefUnwindSafe for Postgres
impl Send for Postgres
impl Sync for Postgres
impl Unpin for Postgres
impl UnwindSafe for Postgres
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> 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