diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-08-02 18:10:12 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-08-02 18:10:12 +0200 |
commit | 992e8454bbdcb2c6c6b7c7bb3f052ebc262d05b9 (patch) | |
tree | a3b0a7bda22f01346bb0e91e5ccf8d3368bbf91f /src/utils | |
parent | 292a92d2fdffda556ffba452df75c0580c1bbfe8 (diff) | |
download | rocket-blog-992e8454bbdcb2c6c6b7c7bb3f052ebc262d05b9.tar.gz rocket-blog-992e8454bbdcb2c6c6b7c7bb3f052ebc262d05b9.tar.bz2 rocket-blog-992e8454bbdcb2c6c6b7c7bb3f052ebc262d05b9.zip |
Begin testing.
Add simple smoke test, and enable the test transaction for the database.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 23b551e..b7811d4 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -4,7 +4,7 @@ use r2d2_diesel::ConnectionManager; use std::fmt::Display; // An alias to the type for a pool of Diesel PostgreSql connections. -type Pool = r2d2::Pool<ConnectionManager<PgConnection>>; +pub type Pool = r2d2::Pool<ConnectionManager<PgConnection>>; /// Initializes a database pool. pub fn init_db_pool(dburl: &str) -> Pool { |