feat(sql): made DbInstances public for managing directly from Rust (#1381)

This commit is contained in:
thewh1teagle
2024-06-10 12:31:03 +03:00
committed by GitHub
parent 909ff619e0
commit 4216c0517f
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ fn path_mapper(mut app_path: PathBuf, connection_string: &str) -> String {
}
#[derive(Default)]
struct DbInstances(Mutex<HashMap<String, Pool<Db>>>);
pub struct DbInstances(pub Mutex<HashMap<String, Pool<Db>>>);
struct Migrations(Mutex<HashMap<String, MigrationList>>);