diff options
author | Akshay <[email protected]> | 2020-10-04 08:53:46 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-10-04 08:53:46 +0100 |
commit | 057382f8d138c63cdc48b0facd9bf4a4a229057a (patch) | |
tree | b30ba227c49918e0e65fc14068307cf11a9248bc /src/lib.rs |
init
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..d956a3f --- /dev/null +++ b/src/lib.rs | |||
@@ -0,0 +1,10 @@ | |||
1 | #[macro_use] | ||
2 | extern crate diesel; | ||
3 | |||
4 | pub mod handlers; | ||
5 | pub mod models; | ||
6 | pub mod schema; | ||
7 | |||
8 | use diesel::r2d2::{self, ConnectionManager}; | ||
9 | use diesel::MysqlConnection; | ||
10 | pub type TPool = r2d2::Pool<ConnectionManager<MysqlConnection>>; | ||