Expand description
Transactional enqueue for non-sqlx Postgres stacks.
The core crate::insert::insert and crate::insert::insert_with
functions require sqlx’s PgExecutor trait. This module provides
feature-gated adapters so users of other Postgres libraries can insert
jobs within their existing transactions.
All adapters share the same preparation logic in
crate::adapter::postgres::prepare_job_insert — validation, state
determination, unique key computation, and ordering-key propagation happen
exactly once, avoiding semantic drift between drivers.
§Available adapters
| Feature | Module | Works with |
|---|---|---|
tokio-postgres | [tokio_pg] | tokio_postgres::Client and Transaction |