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 - This error indicates that a type lookup for a custom postgres type failed
- Pg
- The PostgreSQL backend
- PgConnection
- The connection string expected by
PgConnection::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 - Cache for the OIDs of custom Postgres types
- PgMetadata
Cache Key - The key used to lookup cached type oid’s inside of a PgMetadataCache.
- PgQuery
Builder - The PostgreSQL query builder
- PgRow
ByRow Loading Mode - A
PgConnection
specific 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 FROM
orCOPY TO
statements - Copy
Header - Describes the different possible settings for the
HEADER
option forCOPY FROM
statements
Traits§
- Copy
Target - A expression that could be used as target/source for
COPY FROM
andCOPY TO
commands - GetPg
Metadata Cache - Gets the
PgMetadataCache
for 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
OrderClause
It helps to have bounds on either Col, Ascand Desc . - PgMetadata
Lookup - Determines the OID of types at runtime
- Type
OidLookup - This is a helper trait to defer a type oid lookup to a later point in time