diesel::pg

Struct Pg

Source
pub struct Pg;
Available on crate feature postgres_backend only.
Expand description

The PostgreSQL backend

Trait Implementations§

Source§

impl Backend for Pg

Source§

type QueryBuilder = PgQueryBuilder

The concrete QueryBuilder implementation for this backend.
Source§

type RawValue<'a> = PgValue<'a>

The actual type given to FromSql, with lifetimes applied. This type should not be used directly.
Source§

type BindCollector<'a> = RawBytesBindCollector<Pg>

The concrete BindCollector implementation for this backend. Read more
Source§

impl Clone for Pg

Source§

fn clone(&self) -> Pg

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Pg

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Pg

Source§

fn default() -> Pg

Returns the “default value” for a type. Read more
Source§

impl<T, ST> FromSql<Array<ST>, Pg> for Vec<T>
where T: FromSql<ST, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<BigInt, Pg> for i64

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Binary, Pg> for *const [u8]

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of Vec<u8>, but don’t want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Bool, Pg> for bool

Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<CChar, Pg> for u8

Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Cidr, Pg> for IpNetwork

Available on crate feature network-address only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Citext, Pg> for String

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Date, Pg> for Date

Available on crate feature time only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Date, Pg> for NaiveDate

Available on crate feature chrono only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Date, Pg> for PgDate

Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Double, Pg> for f64

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Float, Pg> for f32

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Inet, Pg> for IpNetwork

Available on crate feature network-address only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Integer, Pg> for i32

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Interval, Pg> for PgInterval

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Interval, Pg> for Duration

Available on crate feature chrono only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Json, Pg> for Value

Available on crate feature serde_json only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Jsonb, Pg> for Value

Available on crate feature serde_json only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<MacAddr, Pg> for [u8; 6]

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Money, Pg> for PgMoney

Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Numeric, Pg> for BigDecimal

Available on crate feature numeric only.
Source§

fn from_sql(numeric: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Numeric, Pg> for PgNumeric

Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Oid, Pg> for u32

Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T, ST> FromSql<Range<ST>, Pg> for (Bound<T>, Bound<T>)
where T: FromSql<ST, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, ST0> FromSql<Record<(ST0,)>, Pg> for (T0,)
where T0: FromSql<ST0, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, ST0, ST1> FromSql<Record<(ST0, ST1)>, Pg> for (T0, T1)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, ST0, ST1, ST2> FromSql<Record<(ST0, ST1, ST2)>, Pg> for (T0, T1, T2)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, ST0, ST1, ST2, ST3> FromSql<Record<(ST0, ST1, ST2, ST3)>, Pg> for (T0, T1, T2, T3)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, ST0, ST1, ST2, ST3, ST4> FromSql<Record<(ST0, ST1, ST2, ST3, ST4)>, Pg> for (T0, T1, T2, T3, T4)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, ST0, ST1, ST2, ST3, ST4, ST5> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5)>, Pg> for (T0, T1, T2, T3, T4, T5)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, ST0, ST1, ST2, ST3, ST4, ST5, ST6> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6)>, Pg> for (T0, T1, T2, T3, T4, T5, T6)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15> FromSql<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
where T0: FromSql<ST0, Pg>, T1: FromSql<ST1, Pg>, T2: FromSql<ST2, Pg>, T3: FromSql<ST3, Pg>, T4: FromSql<ST4, Pg>, T5: FromSql<ST5, Pg>, T6: FromSql<ST6, Pg>, T7: FromSql<ST7, Pg>, T8: FromSql<ST8, Pg>, T9: FromSql<ST9, Pg>, T10: FromSql<ST10, Pg>, T11: FromSql<ST11, Pg>, T12: FromSql<ST12, Pg>, T13: FromSql<ST13, Pg>, T14: FromSql<ST14, Pg>, T15: FromSql<ST15, Pg>,

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<SmallInt, Pg> for i16

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Text, Pg> for *const str

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of String, but don’t want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Time, Pg> for NaiveTime

Available on crate feature chrono only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Time, Pg> for PgTime

Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Time, Pg> for Time

Available on crate feature time only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Timestamp, Pg> for NaiveDateTime

Available on crate feature chrono only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Timestamp, Pg> for PgTimestamp

Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Timestamp, Pg> for PrimitiveDateTime

Available on crate feature time only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Timestamp, Pg> for SystemTime

Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Timestamptz, Pg> for DateTime<Local>

Available on crate feature chrono only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Timestamptz, Pg> for DateTime<Utc>

Available on crate feature chrono only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Timestamptz, Pg> for NaiveDateTime

Available on crate feature chrono only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Timestamptz, Pg> for OffsetDateTime

Available on crate feature time only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Timestamptz, Pg> for PgTimestamp

Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Timestamptz, Pg> for PrimitiveDateTime

Available on crate feature time only.
Source§

fn from_sql(bytes: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl FromSql<Uuid, Pg> for Uuid

Available on crate feature uuid only.
Source§

fn from_sql(value: PgValue<'_>) -> Result<Self>

See the trait documentation.
Source§

fn from_nullable_sql(bytes: Option<DB::RawValue<'_>>) -> Result<Self>

A specialized variant of from_sql for handling null values. Read more
Source§

impl<T> HasSqlType<Array<T>> for Pg
where Pg: HasSqlType<T>,

Source§

fn metadata(lookup: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<BigInt> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Binary> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Bool> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<CChar> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Cidr> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Citext> for Pg

Source§

fn metadata(lookup: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Date> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Double> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Float> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Inet> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Integer> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Interval> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Json> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Jsonb> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<MacAddr> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Money> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Numeric> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Oid> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Range<BigInt>> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Range<Date>> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Range<Integer>> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Range<Numeric>> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Range<Timestamp>> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Range<Timestamptz>> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<ST: 'static> HasSqlType<Record<ST>> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<SmallInt> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Text> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Time> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Timestamp> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Timestamptz> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl HasSqlType<Uuid> for Pg

Source§

fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata

Fetch the metadata for the given type Read more
Source§

impl Hash for Pg

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Pg

Source§

fn eq(&self, other: &Pg) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl QueryBuilder<Pg> for PgQueryBuilder

Source§

fn push_sql(&mut self, sql: &str)

Add sql to the end of the query being constructed.
Source§

fn push_identifier(&mut self, identifier: &str) -> QueryResult<()>

Quote identifier, and add it to the end of the query being constructed.
Source§

fn push_bind_param(&mut self)

Add a placeholder for a bind parameter to the end of the query being constructed.
Source§

fn push_bind_param_value_only(&mut self)

Increases the internal counter for bind parameters without adding the bind parameter itself to the query
Source§

fn finish(self) -> String

Returns the constructed SQL query.
Source§

impl<T> QueryFragment<Pg> for DistinctOnClause<T>
where T: QueryFragment<Pg>,

Source§

fn walk_ast<'b>(&'b self, out: AstPass<'_, 'b, Pg>) -> QueryResult<()>

Walk over this QueryFragment for all passes. Read more
Source§

impl<S> QueryFragment<Pg> for Only<S>
where S: QueryFragment<Pg>,

Source§

fn walk_ast<'b>(&'b self, pass: AstPass<'_, 'b, Pg>) -> QueryResult<()>

Walk over this QueryFragment for all passes. Read more
Source§

impl<S, TSM> QueryFragment<Pg> for Tablesample<S, TSM>
where S: QueryFragment<Pg>, TSM: TablesampleMethod,

Source§

fn walk_ast<'b>(&'b self, out: AstPass<'_, 'b, Pg>) -> QueryResult<()>

Walk over this QueryFragment for all passes. Read more
Source§

impl<'a, C> QueryFragment<Pg> for TransactionBuilder<'a, C>

Source§

fn walk_ast<'b>(&'b self, out: AstPass<'_, 'b, Pg>) -> QueryResult<()>

Walk over this QueryFragment for all passes. Read more
Source§

impl Queryable<Binary, Pg> for *const [u8]

Source§

type Row = *const [u8]

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T, ST> Queryable<Range<ST>, Pg> for (Bound<T>, Bound<T>)
where T: FromSql<ST, Pg>,

Source§

type Row = (Bound<T>, Bound<T>)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, ST0> Queryable<Record<(ST0,)>, Pg> for (T0,)
where Self: FromSql<Record<(ST0,)>, Pg>,

Source§

type Row = (T0,)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, ST0, ST1> Queryable<Record<(ST0, ST1)>, Pg> for (T0, T1)
where Self: FromSql<Record<(ST0, ST1)>, Pg>,

Source§

type Row = (T0, T1)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, ST0, ST1, ST2> Queryable<Record<(ST0, ST1, ST2)>, Pg> for (T0, T1, T2)

Source§

type Row = (T0, T1, T2)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, ST0, ST1, ST2, ST3> Queryable<Record<(ST0, ST1, ST2, ST3)>, Pg> for (T0, T1, T2, T3)

Source§

type Row = (T0, T1, T2, T3)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, ST0, ST1, ST2, ST3, ST4> Queryable<Record<(ST0, ST1, ST2, ST3, ST4)>, Pg> for (T0, T1, T2, T3, T4)

Source§

type Row = (T0, T1, T2, T3, T4)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, ST0, ST1, ST2, ST3, ST4, ST5> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5)>, Pg> for (T0, T1, T2, T3, T4, T5)

Source§

type Row = (T0, T1, T2, T3, T4, T5)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, T6, ST0, ST1, ST2, ST3, ST4, ST5, ST6> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6)>, Pg> for (T0, T1, T2, T3, T4, T5, T6)

Source§

type Row = (T0, T1, T2, T3, T4, T5, T6)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7)

Source§

type Row = (T0, T1, T2, T3, T4, T5, T6, T7)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

Source§

type Row = (T0, T1, T2, T3, T4, T5, T6, T7, T8)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

type Row = (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

type Row = (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

type Row = (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Source§

type Row = (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

Source§

type Row = (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

Source§

type Row = (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15> Queryable<Record<(ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, ST8, ST9, ST10, ST11, ST12, ST13, ST14, ST15)>, Pg> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

Source§

type Row = (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl Queryable<Text, Pg> for *const str

Source§

type Row = *const str

The Rust type you’d like to map from. Read more
Source§

fn build(row: Self::Row) -> Result<Self>

Construct an instance of this type
Source§

impl SqlDialect for Pg

Source§

type ReturningClause = PgLikeReturningClause

Configures how this backend supports RETURNING clauses Read more
Source§

type OnConflictClause = PgOnConflictClause

Configures how this backend supports ON CONFLICT clauses Read more
Source§

type InsertWithDefaultKeyword = IsoSqlDefaultKeyword

Configures how this backend handles the bare DEFAULT keyword for inserting the default value in a INSERT INTO VALUES clause Read more
Source§

type BatchInsertSupport = PostgresLikeBatchInsertSupport

Configures how this backend handles Batch insert statements Read more
Source§

type ConcatClause = ConcatWithPipesClause

Configures how this backend handles the Concat clauses in select statements. Read more
Source§

type DefaultValueClauseForInsert = AnsiDefaultValueClause

Configures how this backend handles the DEFAULT VALUES clause for insert statements. Read more
Source§

type EmptyFromClauseSyntax = AnsiSqlFromClauseSyntax

Configures how this backend handles empty FROM clauses for select statements. Read more
Source§

type SelectStatementSyntax = AnsiSqlSelectStatement

Configures how this backend structures SELECT queries Read more
Source§

type ExistsSyntax = AnsiSqlExistsSyntax

Configures how this backend handles EXISTS() expressions. Read more
Source§

type ArrayComparison = PgStyleArrayComparison

Configures how this backend handles IN() and NOT IN() expressions. Read more
Source§

type AliasSyntax = AsAliasSyntax

Configures how this backend structures SELECT queries Read more
Source§

impl<ST, T> ToSql<Array<ST>, Pg> for [T]
where Pg: HasSqlType<ST>, T: ToSql<ST, Pg>,

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl<ST, T> ToSql<Array<ST>, Pg> for Vec<T>
where ST: 'static, [T]: ToSql<Array<ST>, Pg>, T: Debug,

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<BigInt, Pg> for i64

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Bool, Pg> for bool

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<CChar, Pg> for u8

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Cidr, Pg> for IpNetwork

Available on crate feature network-address only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Citext, Pg> for String

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Citext, Pg> for str

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Date, Pg> for Date

Available on crate feature time only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Date, Pg> for NaiveDate

Available on crate feature chrono only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Date, Pg> for PgDate

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Double, Pg> for f64

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Float, Pg> for f32

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Inet, Pg> for IpNetwork

Available on crate feature network-address only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Integer, Pg> for i32

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Interval, Pg> for PgInterval

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Interval, Pg> for Duration

Available on crate feature chrono only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Json, Pg> for Value

Available on crate feature serde_json only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Jsonb, Pg> for Value

Available on crate feature serde_json only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<MacAddr, Pg> for [u8; 6]

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Money, Pg> for PgMoney

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl<ST, T> ToSql<Nullable<Array<ST>>, Pg> for [T]
where [T]: ToSql<Array<ST>, Pg>, ST: 'static,

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl<ST, T> ToSql<Nullable<Array<ST>>, Pg> for Vec<T>
where ST: 'static, Vec<T>: ToSql<Array<ST>, Pg>,

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl<ST, T> ToSql<Nullable<Range<ST>>, Pg> for (Bound<T>, Bound<T>)
where ST: 'static, (Bound<T>, Bound<T>): ToSql<Range<ST>, Pg>,

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Numeric, Pg> for BigDecimal

Available on crate feature numeric only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Numeric, Pg> for PgNumeric

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Oid, Pg> for u32

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl<ST, T> ToSql<Range<ST>, Pg> for (Bound<T>, Bound<T>)
where T: ToSql<ST, Pg>,

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<SmallInt, Pg> for i16

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Time, Pg> for NaiveTime

Available on crate feature chrono only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Time, Pg> for PgTime

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Time, Pg> for Time

Available on crate feature time only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Timestamp, Pg> for NaiveDateTime

Available on crate feature chrono only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Timestamp, Pg> for PgTimestamp

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Timestamp, Pg> for PrimitiveDateTime

Available on crate feature time only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Timestamp, Pg> for SystemTime

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl<TZ: TimeZone> ToSql<Timestamptz, Pg> for DateTime<TZ>

Available on crate feature chrono only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Timestamptz, Pg> for NaiveDateTime

Available on crate feature chrono only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Timestamptz, Pg> for OffsetDateTime

Available on crate feature time only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Timestamptz, Pg> for PgTimestamp

Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Timestamptz, Pg> for PrimitiveDateTime

Available on crate feature time only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl ToSql<Uuid, Pg> for Uuid

Available on crate feature uuid only.
Source§

fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Pg>) -> Result

See the trait documentation.
Source§

impl TypeMetadata for Pg

Source§

type TypeMetadata = PgTypeMetadata

The actual type used to represent metadata. Read more
Source§

type MetadataLookup = dyn PgMetadataLookup

The type used for runtime lookup of metadata. Read more
Source§

impl Copy for Pg

Source§

impl Eq for Pg

Source§

impl StructuralPartialEq for Pg

Auto Trait Implementations§

§

impl Freeze for Pg

§

impl RefUnwindSafe for Pg

§

impl Send for Pg

§

impl Sync for Pg

§

impl Unpin for Pg

§

impl UnwindSafe for Pg

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T0, __DB> HasSqlType<(T0,)> for __DB
where __DB: HasSqlType<T0> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, __DB> HasSqlType<(T0, T1)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, __DB> HasSqlType<(T0, T1, T2)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, __DB> HasSqlType<(T0, T1, T2, T3)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, __DB> HasSqlType<(T0, T1, T2, T3, T4)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5, T6)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + HasSqlType<T6> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5, T6, T7)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + HasSqlType<T6> + HasSqlType<T7> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + HasSqlType<T6> + HasSqlType<T7> + HasSqlType<T8> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + HasSqlType<T6> + HasSqlType<T7> + HasSqlType<T8> + HasSqlType<T9> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + HasSqlType<T6> + HasSqlType<T7> + HasSqlType<T8> + HasSqlType<T9> + HasSqlType<T10> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + HasSqlType<T6> + HasSqlType<T7> + HasSqlType<T8> + HasSqlType<T9> + HasSqlType<T10> + HasSqlType<T11> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + HasSqlType<T6> + HasSqlType<T7> + HasSqlType<T8> + HasSqlType<T9> + HasSqlType<T10> + HasSqlType<T11> + HasSqlType<T12> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + HasSqlType<T6> + HasSqlType<T7> + HasSqlType<T8> + HasSqlType<T9> + HasSqlType<T10> + HasSqlType<T11> + HasSqlType<T12> + HasSqlType<T13> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + HasSqlType<T6> + HasSqlType<T7> + HasSqlType<T8> + HasSqlType<T9> + HasSqlType<T10> + HasSqlType<T11> + HasSqlType<T12> + HasSqlType<T13> + HasSqlType<T14> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, __DB> HasSqlType<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> for __DB
where __DB: HasSqlType<T0> + HasSqlType<T1> + HasSqlType<T2> + HasSqlType<T3> + HasSqlType<T4> + HasSqlType<T5> + HasSqlType<T6> + HasSqlType<T7> + HasSqlType<T8> + HasSqlType<T9> + HasSqlType<T10> + HasSqlType<T11> + HasSqlType<T12> + HasSqlType<T13> + HasSqlType<T14> + HasSqlType<T15> + Backend,

Source§

fn metadata( _: &mut <__DB as TypeMetadata>::MetadataLookup, ) -> <__DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T, DB> HasSqlType<Nullable<T>> for DB
where DB: Backend + HasSqlType<T>, T: SqlType,

Source§

fn metadata( lookup: &mut <DB as TypeMetadata>::MetadataLookup, ) -> <DB as TypeMetadata>::TypeMetadata

Fetch the metadata for the given type Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoSql for T

Source§

fn into_sql<T>(self) -> AsExprOf<Self, T>

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<T0, __DB> QueryMetadata<(T0,)> for __DB
where __DB: Backend + QueryMetadata<T0>,

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, __DB> QueryMetadata<(T0, T1)> for __DB
where __DB: Backend + QueryMetadata<T0> + QueryMetadata<T1>,

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, __DB> QueryMetadata<(T0, T1, T2)> for __DB
where __DB: Backend + QueryMetadata<T0> + QueryMetadata<T1> + QueryMetadata<T2>,

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, __DB> QueryMetadata<(T0, T1, T2, T3)> for __DB
where __DB: Backend + QueryMetadata<T0> + QueryMetadata<T1> + QueryMetadata<T2> + QueryMetadata<T3>,

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, __DB> QueryMetadata<(T0, T1, T2, T3, T4)> for __DB
where __DB: Backend + QueryMetadata<T0> + QueryMetadata<T1> + QueryMetadata<T2> + QueryMetadata<T3> + QueryMetadata<T4>,

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5, T6)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5, T6, T7)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, __DB> QueryMetadata<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, __DB> QueryMetadata<Nullable<(T0,)>> for __DB
where __DB: Backend + QueryMetadata<T0>,

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, __DB> QueryMetadata<Nullable<(T0, T1)>> for __DB
where __DB: Backend + QueryMetadata<T0> + QueryMetadata<T1>,

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, __DB> QueryMetadata<Nullable<(T0, T1, T2)>> for __DB
where __DB: Backend + QueryMetadata<T0> + QueryMetadata<T1> + QueryMetadata<T2>,

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3)>> for __DB
where __DB: Backend + QueryMetadata<T0> + QueryMetadata<T1> + QueryMetadata<T2> + QueryMetadata<T3>,

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4)>> for __DB
where __DB: Backend + QueryMetadata<T0> + QueryMetadata<T1> + QueryMetadata<T2> + QueryMetadata<T3> + QueryMetadata<T4>,

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5, T6)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5, T6, T7)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, __DB> QueryMetadata<Nullable<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)>> for __DB

Source§

fn row_metadata( lookup: &mut <__DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<__DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T, DB> QueryMetadata<T> for DB
where DB: Backend + HasSqlType<T>, T: SingleValue,

Source§

fn row_metadata( lookup: &mut <DB as TypeMetadata>::MetadataLookup, out: &mut Vec<Option<<DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<DB> QueryMetadata<Untyped> for DB
where DB: Backend,

Source§

fn row_metadata( _: &mut <DB as TypeMetadata>::MetadataLookup, row: &mut Vec<Option<<DB as TypeMetadata>::TypeMetadata>>, )

The exact return value of this function is considered to be a backend specific implementation detail. You should not rely on those values if you not own the corresponding backend
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T