Skip to content

Commit 4216c05

Browse files
authored
feat(sql): made DbInstances public for managing directly from Rust (#1381)
1 parent 909ff61 commit 4216c05

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"sql": patch
3+
---
4+
5+
Made `DbInstances` public for managing database instances directly from `Rust`.

plugins/sql/src/plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn path_mapper(mut app_path: PathBuf, connection_string: &str) -> String {
8787
}
8888

8989
#[derive(Default)]
90-
struct DbInstances(Mutex<HashMap<String, Pool<Db>>>);
90+
pub struct DbInstances(pub Mutex<HashMap<String, Pool<Db>>>);
9191

9292
struct Migrations(Mutex<HashMap<String, MigrationList>>);
9393

0 commit comments

Comments
 (0)