boson-backend-postgres
PostgreSQL QueueBackend for Boson jobs and runs.
Role
Thin wrapper around boson-backend-sql-common SqlQueueBackend.
Compose
use Arc;
use ;
let backend = new;
let boson = builder
.queue_backend
.execution_context_factory
.build?;
Bootstrap
use install_default_postgres_backend;
use default_backend_from_global;
let _backend = install_default_postgres_backend.await?;
let resolved = default_backend_from_global?;
Isolated schema for parallel tests:
use install_isolated_postgres_backend;
let _backend = install_isolated_postgres_backend.await?;
Environment
Postgres URL resolution for tests: BOSON_TEST_POSTGRES_URL, then BOSON_BENCH_POSTGRES_URL.
Enable via boson
Available via the boson crate feature postgres.
Related crates
boson— enable withfeatures = ["postgres"]boson-backend-sql-common— shared SQL implementationboson-core—QueueBackendtrait definition