Skip to main content

PostgresDialect

Struct PostgresDialect 

Source
pub struct PostgresDialect;
Expand description

Type-level marker for PostgreSQL.

Used by crate::row::SQLTypeToRust to provide PostgreSQL-specific type mappings. PostgreSQL uses native binary formats for dates, UUIDs, and JSON, so the corresponding feature flags (chrono, uuid, serde) must be enabled.

Trait Implementations§

Source§

impl AggregatePolicy<PostgresDialect> for Int2

Source§

impl AggregatePolicy<PostgresDialect> for Int4

Source§

impl AggregatePolicy<PostgresDialect> for Int8

Source§

impl AggregatePolicy<PostgresDialect> for Float4

Source§

impl AggregatePolicy<PostgresDialect> for Float8

Source§

impl AggregatePolicy<PostgresDialect> for Numeric

Source§

impl BooleanAggregatePolicy<PostgresDialect> for Boolean

Source§

impl<Source: DataType + Compatible<Target>, Target: DataType> CastTypePolicy<PostgresDialect, Source, Target> for ()

Source§

impl CharLengthPolicy for PostgresDialect

Source§

const CHAR_LENGTH_FN: &'static str = "CHAR_LENGTH"

Source§

impl Clone for PostgresDialect

Source§

fn clone(&self) -> PostgresDialect

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for PostgresDialect

Source§

impl CountPolicy for PostgresDialect

Source§

type Count = Int8

The integer type returned by COUNT (e.g. Integer on SQLite, Int8 on PostgreSQL).
Source§

impl DateTruncPolicy<PostgresDialect> for Timestamptz

Source§

impl DateTruncPolicy<PostgresDialect> for Timestamp

Source§

impl Debug for PostgresDialect

Source§

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

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

impl DialectTypes for PostgresDialect

Source§

impl FloatPolicy for PostgresDialect

Source§

type Float = Float8

The floating-point type returned by distribution window functions like PERCENT_RANK and CUME_DIST (Real on SQLite, Float8 on PostgreSQL).
Source§

impl LengthPolicy<PostgresDialect> for Varchar

Source§

impl LengthPolicy<PostgresDialect> for Text

Source§

impl LengthPolicy<PostgresDialect> for Char

Source§

impl PostgresAggregateSupport for PostgresDialect

Source§

impl PostgresDateTimeSupport for PostgresDialect

Source§

impl PostgresMathSupport for PostgresDialect

Source§

impl PostgresNullSupport for PostgresDialect

Source§

impl PostgresStringSupport for PostgresDialect

Source§

impl RandomPolicy for PostgresDialect

Source§

impl RoundingPolicy<PostgresDialect> for Int2

Source§

impl RoundingPolicy<PostgresDialect> for Int4

Source§

impl RoundingPolicy<PostgresDialect> for Int8

Source§

impl RoundingPolicy<PostgresDialect> for Float4

Source§

impl RoundingPolicy<PostgresDialect> for Float8

Source§

impl RoundingPolicy<PostgresDialect> for Numeric

Source§

impl SQLTypeToRust<PostgresDialect> for Int2

Source§

impl SQLTypeToRust<PostgresDialect> for Int4

Source§

impl SQLTypeToRust<PostgresDialect> for Int8

Source§

impl SQLTypeToRust<PostgresDialect> for Float4

Source§

impl SQLTypeToRust<PostgresDialect> for Float8

Source§

impl SQLTypeToRust<PostgresDialect> for Varchar

Source§

impl SQLTypeToRust<PostgresDialect> for Text

Source§

impl SQLTypeToRust<PostgresDialect> for Char

Source§

impl SQLTypeToRust<PostgresDialect> for Bytea

Source§

impl SQLTypeToRust<PostgresDialect> for Boolean

Source§

impl SQLTypeToRust<PostgresDialect> for Numeric

Available on non-crate feature rust-decimal only.
Source§

impl SQLTypeToRust<PostgresDialect> for Any

Source§

impl SQLTypeToRust<PostgresDialect> for Interval

Available on non-crate feature chrono only.
Source§

impl SQLTypeToRust<PostgresDialect> for Inet

Available on non-crate feature cidr only.
Source§

impl SQLTypeToRust<PostgresDialect> for Cidr

Available on non-crate feature cidr only.
Source§

impl SQLTypeToRust<PostgresDialect> for MacAddr

Source§

impl SQLTypeToRust<PostgresDialect> for MacAddr8

Source§

impl SQLTypeToRust<PostgresDialect> for Point

Available on non-crate feature geo-types only.
Source§

impl SQLTypeToRust<PostgresDialect> for LineString

Available on non-crate feature geo-types only.
Source§

impl SQLTypeToRust<PostgresDialect> for Rect

Available on non-crate feature geo-types only.
Source§

impl SQLTypeToRust<PostgresDialect> for BitString

Available on non-crate feature bit-vec only.
Source§

impl SQLTypeToRust<PostgresDialect> for Line

Source§

impl SQLTypeToRust<PostgresDialect> for LineSegment

Source§

impl SQLTypeToRust<PostgresDialect> for Polygon

Source§

impl SQLTypeToRust<PostgresDialect> for Circle

Source§

impl SQLTypeToRust<PostgresDialect> for Enum

Source§

impl SequenceSupport for PostgresDialect

Source§

impl StatisticalAggregatePolicy<PostgresDialect> for Int2

Source§

impl StatisticalAggregatePolicy<PostgresDialect> for Int4

Source§

impl StatisticalAggregatePolicy<PostgresDialect> for Int8

Source§

impl StatisticalAggregatePolicy<PostgresDialect> for Float4

Source§

impl StatisticalAggregatePolicy<PostgresDialect> for Float8

Source§

impl StatisticalAggregatePolicy<PostgresDialect> for Numeric

Source§

impl ValueTypeForDialect<PostgresDialect> for i8

Source§

impl ValueTypeForDialect<PostgresDialect> for i16

Source§

impl ValueTypeForDialect<PostgresDialect> for u8

Source§

impl ValueTypeForDialect<PostgresDialect> for i32

Source§

impl ValueTypeForDialect<PostgresDialect> for u16

Source§

impl ValueTypeForDialect<PostgresDialect> for i64

Source§

impl ValueTypeForDialect<PostgresDialect> for u32

Source§

impl ValueTypeForDialect<PostgresDialect> for u64

Source§

impl ValueTypeForDialect<PostgresDialect> for isize

Source§

impl ValueTypeForDialect<PostgresDialect> for usize

Source§

impl ValueTypeForDialect<PostgresDialect> for f32

Source§

impl ValueTypeForDialect<PostgresDialect> for f64

Source§

impl ValueTypeForDialect<PostgresDialect> for bool

Source§

impl ValueTypeForDialect<PostgresDialect> for &str

Source§

impl ValueTypeForDialect<PostgresDialect> for Cow<'_, str>

Source§

impl ValueTypeForDialect<PostgresDialect> for String

Source§

impl ValueTypeForDialect<PostgresDialect> for Box<String>

Source§

impl ValueTypeForDialect<PostgresDialect> for Rc<String>

Source§

impl ValueTypeForDialect<PostgresDialect> for Arc<String>

Source§

impl ValueTypeForDialect<PostgresDialect> for Box<str>

Source§

impl ValueTypeForDialect<PostgresDialect> for Rc<str>

Source§

impl ValueTypeForDialect<PostgresDialect> for Arc<str>

Source§

impl ValueTypeForDialect<PostgresDialect> for &[u8]

Source§

impl ValueTypeForDialect<PostgresDialect> for Cow<'_, [u8]>

Source§

impl ValueTypeForDialect<PostgresDialect> for Vec<u8>

Source§

impl ValueTypeForDialect<PostgresDialect> for Box<Vec<u8>>

Source§

impl ValueTypeForDialect<PostgresDialect> for Rc<Vec<u8>>

Source§

impl ValueTypeForDialect<PostgresDialect> for Arc<Vec<u8>>

Source§

impl ValueTypeForDialect<PostgresDialect> for Vec<String>

Source§

impl ValueTypeForDialect<PostgresDialect> for Vec<&str>

Source§

impl ValueTypeForDialect<PostgresDialect> for Vec<i16>

Source§

impl ValueTypeForDialect<PostgresDialect> for Vec<i32>

Source§

impl ValueTypeForDialect<PostgresDialect> for Vec<i64>

Source§

impl ValueTypeForDialect<PostgresDialect> for Vec<f32>

Source§

impl ValueTypeForDialect<PostgresDialect> for Vec<f64>

Source§

impl ValueTypeForDialect<PostgresDialect> for Vec<bool>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AliasExt for T

Source§

fn alias(self, name: &'static str) -> AliasedExpr<Self>

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, dest: *mut u8)

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<Mk> MarkerAggValidFor<()> for Mk

Source§

impl<Scope> ScopeSatisfies<Nil, ()> for Scope

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> TypeEq<T> for T