824e32f17b
* pass PgConnection into run function Changes: - rename Postgres into Queue - pass PgConnection into run function * remove all tasks of specific type * add pgconnection * pass connection to every queue function * add connection pool * reuse connection in test * update readme
26 lines
426 B
Rust
26 lines
426 B
Rust
#![allow(clippy::nonstandard_macro_braces)]
|
|
|
|
#[macro_use]
|
|
pub extern crate diesel;
|
|
|
|
#[macro_use]
|
|
extern crate log;
|
|
|
|
mod schema;
|
|
|
|
pub mod executor;
|
|
pub mod queue;
|
|
pub mod scheduler;
|
|
pub mod worker_pool;
|
|
|
|
pub use executor::*;
|
|
pub use queue::*;
|
|
pub use scheduler::*;
|
|
pub use worker_pool::*;
|
|
|
|
#[doc(hidden)]
|
|
pub use diesel::pg::PgConnection;
|
|
#[doc(hidden)]
|
|
pub use serde::{Deserialize, Serialize};
|
|
#[doc(hidden)]
|
|
pub use typetag;
|