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

pull/1451/head
thewh1teagle 12 months ago committed by GitHub
parent 909ff619e0
commit 4216c0517f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"sql": patch
---
Made `DbInstances` public for managing database instances directly from `Rust`.

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

Loading…
Cancel
Save