Re-exports§
pub use tokio_postgres as postgres;
pub use schema::*;
Modules§
- binary_
copy - Utilities for working with the PostgreSQL binary copy format.
- config
- Connection configuration.
- error
- Errors.
- key
- prelude
- Re-exports traits such that the functions can be used without manually importing them.
- row
- Rows.
- schema
- tls
- TLS support.
- types
- Types.
- untyped_
key
Structs§
- Cancel
Token - The capability to request cancellation of in-progress queries on a connection.
- Client
- An asynchronous PostgreSQL client.
- Column
- Information about a column of a query.
- Config
- Connection configuration.
- Connection
- A connection to a PostgreSQL database.
- Copy
InSink - A sink for
COPY ... FROM STDIN
query data. - Copy
OutStream - A stream of
COPY ... TO STDOUT
query data. - Error
- An error communicating with the Postgres server.
- Insert
Options - NoTls
- A
MakeTlsConnect
andTlsConnect
implementation which simply returns an error. - Notification
- An asynchronous notification.
- Portal
- A portal.
- Query
- The base type that is returned by the SQL query macros.
- Ref
- Row
- A row of data returned from the database by a query.
- RowStream
- A stream of table rows.
- Simple
Column - Information about a column of a single query row.
- Simple
Query Row - A row of data returned from the database by a simple query.
- Simple
Query Stream - A stream of simple query results.
- Socket
- The standard stream type used by the crate.
- Statement
- Transaction
- A representation of a PostgreSQL database transaction.
- Transaction
Builder - A builder for database transactions.
- Where
Clause - A where clause generated by [
iff!
]
Enums§
- Async
Message - An asynchronous message from the server.
- Isolation
Level - The isolation level of a database transaction.
- Simple
Query Message - Message returned by the
SimpleQuery
stream.
Traits§
- Exec
- Helper Trait to implement the
exec
method onClient
. - Fetch
- Helper Trait to implement the
fetch
method onClient
. - Generic
Client - A trait allowing abstraction over connections and transactions.
- Table
- Table
Helper - ToStatement
- A trait abstracting over prepared and unprepared statements.
Functions§
- connect
- A convenience function which parses a connection string and connects to the database.