[−][src]Struct sqlx_core::Postgres
Postgres database driver.
Trait Implementations
impl Database for Postgres
[src]
type Connection = PgConnection
The concrete Connection
implementation for this database.
type Arguments = PgArguments
The concrete Arguments
implementation for this database.
type Row = PgRow
The concrete Row
implementation for this database.
impl Decode<Postgres> for bool
[src]
fn decode(buf: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for Vec<u8>
[src]
fn decode(buf: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for NaiveDateTime
[src]
fn decode(raw: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for DateTime<Utc>
[src]
fn decode(raw: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for DateTime<Local>
[src]
fn decode(raw: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for Uuid
[src]
fn decode(buf: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for f32
[src]
fn decode(buf: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for f64
[src]
fn decode(buf: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for i16
[src]
fn decode(buf: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for i32
[src]
fn decode(buf: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for i64
[src]
fn decode(buf: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for String
[src]
fn decode(buf: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for NaiveTime
[src]
fn decode(raw: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Decode<Postgres> for NaiveDate
[src]
fn decode(raw: &[u8]) -> Result<Self, DecodeError>
[src]
fn decode_null() -> Result<Self, DecodeError>
[src]
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
[src]
impl Encode<Postgres> for bool
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<Postgres> for [u8]
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
impl Encode<Postgres> for NaiveTime
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
impl Encode<Postgres> for NaiveDate
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
impl Encode<Postgres> for NaiveDateTime
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
impl<Tz: TimeZone> Encode<Postgres> for DateTime<Tz> where
Tz::Offset: Copy,
[src]
Tz::Offset: Copy,
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
impl Encode<Postgres> for Uuid
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<Postgres> for Vec<u8>
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
impl Encode<Postgres> for f32
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<Postgres> for f64
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<Postgres> for i16
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<Postgres> for i32
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<Postgres> for i64
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
impl Encode<Postgres> for str
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
impl Encode<Postgres> for String
[src]
fn encode(&self, buf: &mut Vec<u8>)
[src]
fn size_hint(&self) -> usize
[src]
fn encode_nullable(&self, buf: &mut Vec<u8>) -> IsNull
[src]
impl HasSqlType<[u8]> for Postgres
[src]
impl<Tz> HasSqlType<DateTime<Tz>> for Postgres where
Tz: TimeZone,
[src]
Tz: TimeZone,
impl HasSqlType<NaiveDate> for Postgres
[src]
impl HasSqlType<NaiveDateTime> for Postgres
[src]
impl HasSqlType<NaiveTime> for Postgres
[src]
impl HasSqlType<String> for Postgres
[src]
impl HasSqlType<Uuid> for Postgres
[src]
impl HasSqlType<Vec<u8>> for Postgres
[src]
fn metadata() -> Self::TypeMetadata
[src]
impl HasSqlType<bool> for Postgres
[src]
impl HasSqlType<f32> for Postgres
[src]
impl HasSqlType<f64> for Postgres
[src]
impl HasSqlType<i16> for Postgres
[src]
impl HasSqlType<i32> for Postgres
[src]
impl HasSqlType<i64> for Postgres
[src]
impl HasSqlType<str> for Postgres
[src]
impl HasTypeMetadata for Postgres
[src]
type TypeMetadata = PgTypeMetadata
The actual type used to represent metadata.
type TableId = u32
The Rust type of table identifiers.
type TypeId = u32
The Rust type of type identifiers.
impl IntoArguments<Postgres> for ()
[src]
fn into_arguments(self) -> <Postgres as Database>::Arguments
[src]
impl<T1> IntoArguments<Postgres> for (T1,) where
Postgres: HasSqlType<T1>,
T1: Encode<Postgres>,
[src]
Postgres: HasSqlType<T1>,
T1: Encode<Postgres>,
fn into_arguments(self) -> <Postgres as Database>::Arguments
[src]
impl<T1, T2> IntoArguments<Postgres> for (T1, T2) where
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
[src]
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
fn into_arguments(self) -> <Postgres as Database>::Arguments
[src]
impl<T1, T2, T3> IntoArguments<Postgres> for (T1, T2, T3) where
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
[src]
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
fn into_arguments(self) -> <Postgres as Database>::Arguments
[src]
impl<T1, T2, T3, T4> IntoArguments<Postgres> for (T1, T2, T3, T4) where
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
[src]
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
fn into_arguments(self) -> <Postgres as Database>::Arguments
[src]
impl<T1, T2, T3, T4, T5> IntoArguments<Postgres> for (T1, T2, T3, T4, T5) where
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
Postgres: HasSqlType<T5>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
T5: Encode<Postgres>,
[src]
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
Postgres: HasSqlType<T5>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
T5: Encode<Postgres>,
fn into_arguments(self) -> <Postgres as Database>::Arguments
[src]
impl<T1, T2, T3, T4, T5, T6> IntoArguments<Postgres> for (T1, T2, T3, T4, T5, T6) where
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
Postgres: HasSqlType<T5>,
Postgres: HasSqlType<T6>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
T5: Encode<Postgres>,
T6: Encode<Postgres>,
[src]
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
Postgres: HasSqlType<T5>,
Postgres: HasSqlType<T6>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
T5: Encode<Postgres>,
T6: Encode<Postgres>,
fn into_arguments(self) -> <Postgres as Database>::Arguments
[src]
impl<T1, T2, T3, T4, T5, T6, T7> IntoArguments<Postgres> for (T1, T2, T3, T4, T5, T6, T7) where
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
Postgres: HasSqlType<T5>,
Postgres: HasSqlType<T6>,
Postgres: HasSqlType<T7>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
T5: Encode<Postgres>,
T6: Encode<Postgres>,
T7: Encode<Postgres>,
[src]
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
Postgres: HasSqlType<T5>,
Postgres: HasSqlType<T6>,
Postgres: HasSqlType<T7>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
T5: Encode<Postgres>,
T6: Encode<Postgres>,
T7: Encode<Postgres>,
fn into_arguments(self) -> <Postgres as Database>::Arguments
[src]
impl<T1, T2, T3, T4, T5, T6, T7, T8> IntoArguments<Postgres> for (T1, T2, T3, T4, T5, T6, T7, T8) where
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
Postgres: HasSqlType<T5>,
Postgres: HasSqlType<T6>,
Postgres: HasSqlType<T7>,
Postgres: HasSqlType<T8>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
T5: Encode<Postgres>,
T6: Encode<Postgres>,
T7: Encode<Postgres>,
T8: Encode<Postgres>,
[src]
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
Postgres: HasSqlType<T5>,
Postgres: HasSqlType<T6>,
Postgres: HasSqlType<T7>,
Postgres: HasSqlType<T8>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
T5: Encode<Postgres>,
T6: Encode<Postgres>,
T7: Encode<Postgres>,
T8: Encode<Postgres>,
fn into_arguments(self) -> <Postgres as Database>::Arguments
[src]
impl<T1, T2, T3, T4, T5, T6, T7, T8, T9> IntoArguments<Postgres> for (T1, T2, T3, T4, T5, T6, T7, T8, T9) where
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
Postgres: HasSqlType<T5>,
Postgres: HasSqlType<T6>,
Postgres: HasSqlType<T7>,
Postgres: HasSqlType<T8>,
Postgres: HasSqlType<T9>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
T5: Encode<Postgres>,
T6: Encode<Postgres>,
T7: Encode<Postgres>,
T8: Encode<Postgres>,
T9: Encode<Postgres>,
[src]
Postgres: HasSqlType<T1>,
Postgres: HasSqlType<T2>,
Postgres: HasSqlType<T3>,
Postgres: HasSqlType<T4>,
Postgres: HasSqlType<T5>,
Postgres: HasSqlType<T6>,
Postgres: HasSqlType<T7>,
Postgres: HasSqlType<T8>,
Postgres: HasSqlType<T9>,
T1: Encode<Postgres>,
T2: Encode<Postgres>,
T3: Encode<Postgres>,
T4: Encode<Postgres>,
T5: Encode<Postgres>,
T6: Encode<Postgres>,
T7: Encode<Postgres>,
T8: Encode<Postgres>,
T9: Encode<Postgres>,
fn into_arguments(self) -> <Postgres as Database>::Arguments
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<'_, T, DB> HasSqlType<&'_ T> for DB where
DB: HasSqlType<T>,
T: ?Sized,
[src]
DB: HasSqlType<T>,
T: ?Sized,
fn metadata() -> <DB as HasTypeMetadata>::TypeMetadata
[src]
impl<T, DB> HasSqlType<Option<T>> for DB where
DB: HasSqlType<T>,
[src]
DB: HasSqlType<T>,
fn metadata() -> <DB as HasTypeMetadata>::TypeMetadata
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,