Re-exports§
pub use sqlx;
Modules§
- types
- Conversions between Rust and Postgres types.
Macros§
Structs§
- Db
- Map
- A single SQL query that will map its results to an owned Rust type.
- 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
Arguments
for 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 STDIN
mode. - 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
Row
for PostgreSQL. - PgStatement
- PgTransaction
Manager - Implementation of [
TransactionManager
] for PostgreSQL. - PgType
Info - Type information for a PostgreSQL type.
- PgValue
- Implementation of
Value
for PostgreSQL. - PgValue
Ref - Implementation of
ValueRef
for PostgreSQL. - Postgres
- PostgreSQL database driver.
- Query
- A single SQL query as a prepared statement. Returned by
query()
. - QueryAs
- A single SQL query as a prepared statement, mapping results using
FromRow
. Returned byquery_as()
. - Query
Scalar - A single SQL query as a prepared statement which extracts only the first column of each row.
Returned by
query_scalar()
. - Transaction
- An in-progress database transaction or savepoint.
Enums§
- Error
- Represents all the ways a method can fail within SQLx.
- 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
Constants§
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 STDOUT
on aPgPool
. - Sqlx
Model - Sqlx
Model Hub - Sqlx
Select Model Hub
Type Aliases§
- PgMap
- PgPool
- An alias for
Pool
, specialized for Postgres. - PgPool
Options - An alias for
PoolOptions
, specialized for Postgres. - PgQuery
- PgQuery
Scalar - PgTransaction
- An alias for
Transaction
, specialized for Postgres. - PgTx