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 structures for PG types which have no corresponding Rust type
- PostgreSQL related query builder extensions
- PostgreSQL specific SQL types
Structs§
- The structure returned by
copy_from
- The structure returned by
copy_to
- 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 - The PostgreSQL backend
- PgConnection
postgres
The connection string expected byPgConnection::establish
should 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. - The PostgreSQL query builder
- PgRow
ByRow Loading Mode postgres
APgConnection
specific loading mode to load rows one by one - The OIDs for a SQL type
- Raw postgres value as received from the database
- Used to build a transaction, specifying additional details.
Enums§
- Describes the format used by
COPY FROM
orCOPY TO
statements - Describes the different possible settings for the
HEADER
option forCOPY FROM
statements
Traits§
- A expression that could be used as target/source for
COPY FROM
andCOPY TO
commands - GetPg
Metadata Cache i-implement-a-third-party-backend-and-opt-into-breaking-changes
Gets thePgMetadataCache
for aConnection<Backend=Pg>
so that the lookup of user defined types, or types which come from an extension can be cached. - A decorator trait for
OrderClause
It helps to have bounds on either Col, Ascand Desc . - 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