pub trait TaskTableProvider:
Send
+ Sync
+ 'static {
// Required methods
fn schema_name(&self) -> &str;
fn tasks_table(&self) -> &str;
fn tasks_ready_view(&self) -> &str;
fn tasks_notify_fn(&self) -> &str;
fn tasks_notify_done_fn(&self) -> &str;
fn tasks_queue_name(&self) -> &str;
// Provided methods
fn tasks_queue_done_name(&self) -> String { ... }
fn tasks_table_full_name(&self) -> String { ... }
fn tasks_ready_view_full_name(&self) -> String { ... }
fn tasks_notify_fn_full_name(&self) -> String { ... }
fn tasks_notify_done_fn_full_name(&self) -> String { ... }
}
Expand description
Used to make the postgres table/view/function names pluggable. You’ll
typically want to use its implementor TaskTables
that can be
instantiated with a customizable schema and name prefix.