aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: d956a3f363b7d4997a5fa296c4ac20112cb28747 (plain)
1
2
3
4
5
6
7
8
9
10
#[macro_use]
extern crate diesel;

pub mod handlers;
pub mod models;
pub mod schema;

use diesel::r2d2::{self, ConnectionManager};
use diesel::MysqlConnection;
pub type TPool = r2d2::Pool<ConnectionManager<MysqlConnection>>;