2021-06-06 08:44:46 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate diesel;
|
|
|
|
|
2021-06-05 11:39:19 +00:00
|
|
|
// pub trait JobQueue {
|
|
|
|
// type Job;
|
|
|
|
// type Error;
|
|
|
|
|
|
|
|
// fn push(job: Self::Job) -> Result<(), Self::Error> {
|
|
|
|
|
|
|
|
// }
|
|
|
|
// fn pop(job: Self::Job) -> Result<(), Self::Error>;
|
|
|
|
// }
|
|
|
|
|
|
|
|
// pub trait Storage {
|
|
|
|
// fn save() ->
|
|
|
|
// }
|
2021-06-06 08:44:46 +00:00
|
|
|
|
|
|
|
pub mod postgres;
|
|
|
|
mod schema;
|
|
|
|
|
2021-05-30 08:35:00 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
#[test]
|
|
|
|
fn it_works() {
|
|
|
|
assert_eq!(2 + 2, 4);
|
|
|
|
}
|
|
|
|
}
|