Skip to main content

Crate azums_postgres

Crate azums_postgres 

Source
Expand description

§Azums Postgres

Production-grade PostgreSQL storage backend implementation for azums.

Structs§

AttemptsRepo
PostgreSQL repository for durable job-attempt history.
IngestDecisionsRepo
PostgreSQL repository for producer admission audit decisions.
Job
Primary job entity representing a unit of work stored in a storage backend.
JobListItem
Lightweight job summary model returned when listing jobs in Admin UI or APIs.
JobsRepo
Repository providing atomic database operations for job queue management.
MaintenanceRepo
PostgreSQL repository for archival, history pruning, and table maintenance.
MemoryAttempt
Attempt history record stored in MemoryBackend.
MemoryBackend
Thread-safe in-memory implementation of StorageBackend.
MetricsRepo
PostgreSQL repository for queue-level operational metrics.
MockBackend
Recording mock storage backend wrapper for assertion-driven integration testing.
NewJob
Specification for enqueueing a new job into a storage backend.
PoliciesRepo
PostgreSQL repository for queue execution policies.
PolicyDecisionRow
Durable record explaining a queue-policy decision for one job.
PolicyDecisionsRepo
PostgreSQL repository for durable policy-decision history.
PostgresBackend
PostgreSQL implementation of StorageBackend using SQLx.
QueuePolicy
PostgreSQL execution limits applied to one queue.

Enums§

CallRecord
Log record representing a single call executed against a MockBackend.
JobStatus
Stored job status values.

Traits§

StorageBackend
Async, backend-agnostic storage interface for job queue operations.

Functions§

make_pool
Connects to a PostgreSQL database URL and returns a tuned PgPool.
run_migrations
Executes all embedded SQL schema migrations on the provided database connection pool.

Type Aliases§

JobHandler
Asynchronous job handler closure type alias.
QueueError
Type alias for backward compatibility.