Skip to content

Commit

Permalink
feat(sql): made DbInstances public for managing directly from Rust (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle authored Jun 10, 2024
1 parent 909ff61 commit 4216c05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/sql-public-db-instances.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"sql": patch
---

Made `DbInstances` public for managing database instances directly from `Rust`.
2 changes: 1 addition & 1 deletion plugins/sql/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>>);

Expand Down

0 comments on commit 4216c05

Please sign in to comment.