boson-backend-sql-common 0.1.0

Shared SQL QueueBackend for SQLite and PostgreSQL
Documentation

boson-backend-sql-common

Shared SQL QueueBackend implementation for SQLite and PostgreSQL.

Role

Compose

use std::sync::Arc;

use boson::{Boson, SqliteQueueBackend};

let backend = Arc::new(SqliteQueueBackend::new("boson.db").await?);
let boson = Boson::builder()
    .queue_backend(backend)
    .execution_context_factory(your_factory)
    .build()?;

Related crates