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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::marker::PhantomData;

use ruststream_sqlx::Inbox;

#[derive(Debug, Inbox, sqlx::FromRow)]
#[inbox(table = "email_jobs", clock = Source, checked, db = postgres)]
struct SendEmail<Source> {
    #[field(id)]
    job_id: i64,
    #[field(payload)]
    payload: Vec<u8>,
    #[sqlx(skip)]
    source: PhantomData<Source>,
}

fn main() {}