From de5d2757a94c99fe75e74132e4e470530bd51ea9 Mon Sep 17 00:00:00 2001 From: Lucy Bladen Date: Fri, 12 Nov 2021 22:22:20 +0000 Subject: [PATCH] Rename and make public DB types --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ad13cb0..fe292d7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -32,19 +32,19 @@ pub mod built_info { use crate::core_commands::*; -type Pool = diesel::r2d2::Pool>; +pub type ManifoldDatabasePool = diesel::r2d2::Pool>; pub struct Db { - pool: Pool, + pool: ManifoldDatabasePool, } impl Deref for Db { - type Target = Pool; + type Target = ManifoldDatabasePool; fn deref(&self) -> &Self::Target { &self.pool } } -struct ManifoldDatabase; +pub struct ManifoldDatabase; impl TypeMapKey for ManifoldDatabase { type Value = Arc>;