Rename and make public DB types

This commit is contained in:
Lucy Bladen 2021-11-12 22:22:20 +00:00
parent 39bd9dd054
commit de5d2757a9
1 changed files with 4 additions and 4 deletions

View File

@ -32,19 +32,19 @@ pub mod built_info {
use crate::core_commands::*;
type Pool = diesel::r2d2::Pool<ConnectionManager<SqliteConnection>>;
pub type ManifoldDatabasePool = diesel::r2d2::Pool<ConnectionManager<SqliteConnection>>;
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<Mutex<Db>>;