graphile_worker 0.13.3

High performance Rust/PostgreSQL job queue (also suitable for getting jobs generated by PostgreSQL triggers/functions out into a different work queue)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

#[tokio::test]
async fn worker_options_initializes_schema_that_requires_quoting() {
    with_test_db(|test_db| async move {
        let worker = test_db
            .create_worker_options()
            .schema("Case-Schema")
            .listen_os_shutdown_signals(false)
            .define_job::<BuilderJob>()
            .init()
            .await
            .expect("Failed to create worker");

        assert_eq!(worker.schema().escaped(), "\"Case-Schema\"");
    })
    .await;
}