Skip to main content

Crate aurora_dsql_sqlx_connector

Crate aurora_dsql_sqlx_connector 

Source
Expand description

Aurora DSQL connector for SQLx.

Modules§

connection
poolpool

Macros§

txnocc
Convenience macro to hide Box::pin boilerplate for transaction closures.

Structs§

DsqlConnectOptions
DsqlConnectOptionsBuilder
Builder for DsqlConnectOptions.
OCCRetryConfigocc
OCCRetryConfigBuilderocc
Builder for OCCRetryConfig.
Region
The region to send requests to.
SharedCredentialsProvider
Credentials Provider wrapper that may be shared

Enums§

DsqlError
OCCTypeocc
OCC conflict type: Data (OC000), Schema (OC001), or Unknown (40001).

Traits§

OCCRetryExtocc
Extension trait for PgPool and PgConnection providing ergonomic OCC retry methods.

Functions§

is_occ_errorocc
Detect and classify OCC errors. Returns Some((OCCType, code)) for OCC errors, None otherwise.
retry_on_occocc
Retry an async operation on OCC errors with exponential backoff.

Type Aliases§

Result