Re-exports§
pub use SqlFragment::Raw;
Modules§
- binary_
copy - Utilities for working with the PostgreSQL binary copy format.
- bindings
- protocol
- types
- Types.
Macros§
- append_
sql - Append SQL to SqlBuilder passed as
builder;
in the macro. See [crate::sql] - fieldset
- sql
- A SQL templating macro that allows composing fragments and binding query parameters inline.
Structs§
- Config
- Configuration object.
- Conn
- Wrapper around
simple_pg_client::Client
with aStatementCache
. - Error
- An error communicating with the Postgres server.
- Generated
Sql - Iter
Values - JoinSql
- Join a sequence SQL fragments with an optional seperator
- Manager
Config - Configuration object for a
Manager
. - MapInto
Row - NoTls
- A
MakeTlsConnect
andTlsConnect
implementation which simply returns an error. - Pool
- Generic object and connection pool.
- Pool
Config Pool
configuration.- Pool
Conn - Wrapper around the actual pooled connection which implements
Deref
,DerefMut
andDrop
traits. - Row
- A row of data returned from the database by a query.
- Sql
- SqlBuilder
- Timeouts
- Transaction
- Database Transaction with Statement Cache.
- Transaction
Config - Used to configure a transaction with
[Conn::transaction_configured]
Enums§
- Error
Kind - Error Code for client
- Isolation
Level - The isolation level of a database transaction.
- Pool
Error - Possible errors returned by
Pool::get()
method. - Recycling
Method - Possible methods of how a connection is recycled.
- SqlFragment
Traits§
- From
SqlOwned - A trait for types which can be created from a Postgres value without borrowing any data.
- Into
Tuple Slice - SqlSnippet
- ToSql
- A trait for types that can be converted into Postgres values.
Type Aliases§
Attribute Macros§
- test
- Marks async function to be executed by runtime, suitable to test environment. In particular, it uses a shared global runtime to allow for reusing databases connections from a shared pool.