Crate postgres
Expand description
PostgreSQL database driver.
Modules§
- types
 - Conversions between Rust and Postgres types.
 
Structs§
- PgAdvisory
Lock  - A mutex-like type utilizing Postgres advisory locks.
 - PgAdvisory
Lock Guard  - A wrapper for 
PgConnection(or a similar type) that represents a held Postgres advisory lock. - PgArgument
Buffer  - PgArguments
 - Implementation of 
Argumentsfor PostgreSQL. - PgColumn
 - PgConnect
Options  - Options and flags which can be used to configure a PostgreSQL connection.
 - PgConnection
 - A connection to a PostgreSQL database.
 - PgCopy
In  - A connection in streaming 
COPY FROM STDINmode. - PgDatabase
Error  - An error returned from the PostgreSQL database.
 - PgListener
 - A stream of asynchronous notifications from Postgres.
 - PgNotification
 - An asynchronous notification from Postgres.
 - PgQuery
Result  - PgRow
 - Implementation of 
Rowfor PostgreSQL. - PgStatement
 - PgTransaction
Manager  - Implementation of [
TransactionManager] for PostgreSQL. - PgType
Info  - Type information for a PostgreSQL type.
 - PgValue
 - Implementation of 
Valuefor PostgreSQL. - PgValue
Ref  - Implementation of 
ValueReffor PostgreSQL. - Postgres
 - PostgreSQL database driver.
 
Enums§
- PgAdvisory
Lock Key  - A key type natively used by Postgres advisory locks.
 - PgError
Position  - PgSeverity
 - PgSsl
Mode  - Options for controlling the level of protection provided for PostgreSQL SSL connections.
 - PgType
Kind  - PgValue
Format  
Traits§
- PgExecutor
 - An alias for 
Executor<'_, Database = Postgres>. - PgHas
Array Type  - Provides information necessary to encode and decode Postgres arrays as compatible Rust types.
 - PgPool
Copy Ext  - Implements methods for directly executing 
COPY FROM/TO STDOUTon aPgPool. 
Type Aliases§
- PgPool
 - An alias for 
Pool, specialized for Postgres. - PgPool
Options  - An alias for 
PoolOptions, specialized for Postgres.