Modules§
- tokio_
postgres - An asynchronous, pipelined, PostgreSQL client.
Structs§
- Client
Wrapper - Wrapper around
tokio_postgres::Client
with aStatementCache
. - Config
- Configuration object.
- Config
Connect Impl - Provides an implementation of
Connect
that establishes the connection using thetokio_postgres
configuration itself. - Manager
Manager
for creating and recycling PostgreSQL connections.- Manager
Config - Configuration object for a
Manager
. - Metrics
- Statistics regarding an object returned by the pool
- Pool
Config Pool
configuration.- Statement
Cache - Representation of a cache of
Statement
s. - Statement
Caches - Structure holding a reference to all
StatementCache
s and providing access for clearing all caches and removing single statements from them. - Status
- The current pool status.
- Timeouts
- Timeouts when getting
Object
s from aPool
. - Transaction
- Wrapper around
tokio_postgres::Transaction
with aStatementCache
from theClient
object it was created by. - Transaction
Builder - Wrapper around
tokio_postgres::TransactionBuilder
with aStatementCache
from theClient
object it was created by.
Enums§
- Channel
Binding - Channel binding configuration.
- Config
Error - This error is returned if there is something wrong with the configuration
- Load
Balance Hosts - Load balancing configuration.
- Recycling
Method - Possible methods of how a connection is recycled.
- Runtime
- Enumeration for picking a runtime implementation.
- SslMode
- TLS configuration.
- Target
Session Attrs - Properties required of a session.
Traits§
- Connect
- Describes a mechanism for establishing a connection to a PostgreSQL
server via
tokio_postgres
. - Generic
Client - A trait allowing abstraction over connections and transactions.
Type Aliases§
- Build
Error - Type alias for using
deadpool::managed::BuildError
withtokio_postgres
. - Client
- Type alias for
Object
- Create
Pool Error - Type alias for using
deadpool::managed::CreatePoolError
withtokio_postgres
. - Hook
- Type alias for using
deadpool::managed::Hook
withtokio_postgres
. - Hook
Error - Type alias for using
deadpool::managed::HookError
withtokio_postgres
. - Object
- Type alias for using
deadpool::managed::Object
withtokio_postgres
. - Pool
- Type alias for using
deadpool::managed::Pool
withtokio_postgres
. - Pool
Builder - Type alias for using
deadpool::managed::PoolBuilder
withtokio_postgres
. - Pool
Error - Type alias for using
deadpool::managed::PoolError
withtokio_postgres
.