Skip to content

Commit

Permalink
THe info about pool can be accessed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Heromyth committed Feb 18, 2022
1 parent e41cafd commit 4516249
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/hunt/entity/EntityManager.d
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class EntityManager : Closeable {

this(CriteriaBuilder criteriaBuilder, string name, EntityOption option,
Database db, Dialect dialect) {
assert(db !is null, "The database can't be null");
_criteriaBuilder = criteriaBuilder;
_name = name;
_option = option;
Expand Down Expand Up @@ -183,6 +184,10 @@ class EntityManager : Closeable {
return _db;
}

string getDbPoolInfo() {
return _db.poolInfo();
}

DatabaseOption getDbOption() {
return _db.getOption();
}
Expand Down

0 comments on commit 4516249

Please sign in to comment.