Skip to main content

Crate sqlx_ext

Crate sqlx_ext 

Source
Expand description

Implicit, poll-scoped SQLx execution.

A transaction scope does not propagate into tokio::spawn; await child work before its enclosing Database::transaction completes.

Modules§

prelude
Production-oriented import surface for scoped SQLx execution.

Structs§

Database
Transaction

Enums§

ConnectionRef
DatabaseHandle
DbError

Traits§

ScopedExecutor
Marker trait for SQLx query objects that participate in scoped execution. Import prelude for the extension methods themselves.
ScopedQuery
ScopedQueryAs
ScopedScalarQuery

Functions§

current_connection
with_connection_override

Type Aliases§

ScopedStream
A scoped compatibility stream. It preserves the fetch() consumption API; rows are currently collected before being yielded so the transaction mutex is never released while SQLx still borrows the transaction.