Module postgres

Source

Modules§

tokio_postgres
An asynchronous, pipelined, PostgreSQL client.

Structs§

ClientWrapper
Wrapper around tokio_postgres::Client with a StatementCache.
Config
Configuration object.
ConfigConnectImpl
Provides an implementation of Connect that establishes the connection using the tokio_postgres configuration itself.
Manager
Manager for creating and recycling PostgreSQL connections.
ManagerConfig
Configuration object for a Manager.
Metrics
Statistics regarding an object returned by the pool
PoolConfig
Pool configuration.
StatementCache
Representation of a cache of Statements.
StatementCaches
Structure holding a reference to all StatementCaches and providing access for clearing all caches and removing single statements from them.
Status
The current pool status.
Timeouts
Timeouts when getting Objects from a Pool.
Transaction
Wrapper around tokio_postgres::Transaction with a StatementCache from the Client object it was created by.
TransactionBuilder
Wrapper around tokio_postgres::TransactionBuilder with a StatementCache from the Client object it was created by.

Enums§

ChannelBinding
Channel binding configuration.
ConfigError
This error is returned if there is something wrong with the configuration
LoadBalanceHosts
Load balancing configuration.
RecyclingMethod
Possible methods of how a connection is recycled.
Runtime
Enumeration for picking a runtime implementation.
SslMode
TLS configuration.
TargetSessionAttrs
Properties required of a session.

Traits§

Connect
Describes a mechanism for establishing a connection to a PostgreSQL server via tokio_postgres.
GenericClient
A trait allowing abstraction over connections and transactions.

Type Aliases§

BuildError
Type alias for using deadpool::managed::BuildError with tokio_postgres.
Client
Type alias for Object
CreatePoolError
Type alias for using deadpool::managed::CreatePoolError with tokio_postgres.
Hook
Type alias for using deadpool::managed::Hook with tokio_postgres.
HookError
Type alias for using deadpool::managed::HookError with tokio_postgres.
Object
Type alias for using deadpool::managed::Object with tokio_postgres.
Pool
Type alias for using deadpool::managed::Pool with tokio_postgres.
PoolBuilder
Type alias for using deadpool::managed::PoolBuilder with tokio_postgres.
PoolError
Type alias for using deadpool::managed::PoolError with tokio_postgres.