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

This commit is contained in:
thewh1teagle authored and GitHub committed 2024-06-10 11:31:03 +02:00
1 parent 909ff619e0
commit 4216c0517f
2 files changed
+6 -1

No files matched your search

+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>>);