diff options
author | Akshay <[email protected]> | 2020-12-24 05:21:40 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-12-24 05:21:40 +0000 |
commit | 9d2b6ee10ec5359cc91769d430485c8c869ba1a8 (patch) | |
tree | b2d541e575ab6e3f70cb709f156f06afca085881 /backend/src/lib.rs | |
parent | 7c65421328552b08e64df25e224fe9d54d363e6e (diff) |
monorepo
Diffstat (limited to 'backend/src/lib.rs')
-rw-r--r-- | backend/src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/src/lib.rs b/backend/src/lib.rs new file mode 100644 index 0000000..d956a3f --- /dev/null +++ b/backend/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>>; | ||