Module pg

Source
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
types
PostgreSQL specific types
upsert
Types and functions related to PG’s ON CONFLICT clause

Structs§

DistinctOnClause
Represents DISTINCT ON (...)
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
PgMetadataLookup
Determines the OID of types at runtime
PgQueryBuilder
The PostgreSQL query builder
PgTypeMetadata
The OIDs for a SQL type
TransactionBuilder
Used to build a transaction, specifying additional details.