Available on crate feature
postgres_backend only.Expand description
Provides types and functions related to working with PostgreSQL
Much of this module is re-exported from database agnostic locations. However, if you are writing code specifically to extend Diesel on PostgreSQL, you may need to work with this module directly.
Modules§
- data_
types - Data structures for PG types which have no corresponding Rust type
- expression
- PostgreSQL related query builder extensions
- sql_
types - PostgreSQL specific SQL types
Structs§
- Copy
From Query - The structure returned by
copy_from - Copy
ToQuery - The structure returned by
copy_to - Distinct
OnClause - Represents
DISTINCT ON (...) - Failed
ToLookup Type Error i-implement-a-third-party-backend-and-opt-into-breaking-changes - This error indicates that a type lookup for a custom postgres type failed
- Pg
- The PostgreSQL backend
- PgConnection
postgres - The connection string expected by
PgConnection::establishshould be a PostgreSQL connection string, as documented at https://www.postgresql.org/docs/9.4/static/libpq-connect.html#LIBPQ-CONNSTRING - PgMetadata
Cache i-implement-a-third-party-backend-and-opt-into-breaking-changes - Cache for the OIDs of custom Postgres types
- PgMetadata
Cache Key i-implement-a-third-party-backend-and-opt-into-breaking-changes - The key used to lookup cached type oid’s inside of a PgMetadataCache.
- PgNotification
- See Postgres documentation for SQL Commands NOTIFY and LISTEN
- PgQuery
Builder - The PostgreSQL query builder
- PgRow
ByRow Loading Mode postgres - A
PgConnectionspecific loading mode to load rows one by one - PgType
Metadata - The OIDs for a SQL type
- PgValue
- Raw postgres value as received from the database
- Transaction
Builder - Used to build a transaction, specifying additional details.
Enums§
- Copy
Format - Describes the format used by
COPY FROMorCOPY TOstatements - Copy
Header - Describes the different possible settings for the
HEADERoption forCOPY FROMstatements
Traits§
- Copy
Target - A expression that could be used as target/source for
COPY FROMandCOPY TOcommands - GetPg
Metadata Cache i-implement-a-third-party-backend-and-opt-into-breaking-changes - Gets the
PgMetadataCachefor aConnection<Backend=Pg>so that the lookup of user defined types, or types which come from an extension can be cached. - Order
Decorator - A decorator trait for
OrderClauseIt helps to have bounds on either Col, Ascand Desc . - PgMetadata
Lookup - Determines the OID of types at runtime
- Type
OidLookup i-implement-a-third-party-backend-and-opt-into-breaking-changes - This is a helper trait to defer a type oid lookup to a later point in time