Skip to main content

Module callback

Module callback 

Source
Expand description

Callbacks allow realtime listeners for new jobs

§Example usage

let (pool, callback) = SqliteStorage::connect_with_callback(url).unwrap();
SqliteStorage::setup(&pool).await.unwrap();
let backend = SqliteStorage::new(&pool).with_callback(callback);

Structs§

DbEvent
Database event emitted by SQLite update hook
HookCallbackListener
Listener for database events emitted by SQLite update hook

Type Aliases§

SqliteStorageWithHook
An SqliteStorage that polls when HookCallbackListener is invoked