ruststream-sqlx 0.7.0

SQL databases for the RustStream messaging framework through sqlx: a transactional outbox over any RustStream broker and task queues in Postgres, MySQL/MariaDB and SQLite tables.
Documentation
use ruststream_sqlx::Inbox;

// The table is the one thing the derive cannot guess.
#[derive(Inbox)]
struct NoTable {
    #[field(id)]
    id: i64,
}

#[derive(Inbox)]
#[inbox(table = "jobs", queue = "emails")]
struct UnknownOption {
    #[field(id)]
    id: i64,
}

#[derive(Inbox)]
#[inbox(table = "")]
struct EmptyTable {
    #[field(id)]
    id: i64,
}

#[derive(Inbox)]
#[inbox(table = "jobs")]
#[inbox(table = "jobs_v2")]
struct TwoTables {
    #[field(id)]
    id: i64,
}

// A schema is named on its own, never inside the table's name.
#[derive(Inbox)]
#[inbox(table = "app.jobs")]
struct QualifiedTable {
    #[field(id)]
    id: i64,
}

#[derive(Inbox)]
#[inbox(table = "jobs", schema = "db.app")]
struct DottedSchema {
    #[field(id)]
    id: i64,
}

fn main() {}