mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 17:59:25 +00:00
Added method to expose the mysql2 database connection
This commit is contained in:
@@ -91,6 +91,14 @@ class DatabaseConnectionPool {
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Expose the database connection pool
|
||||
* @type {Object}
|
||||
*/
|
||||
get pool() {
|
||||
return this.#connectionPool;
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the connection to the database
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user