mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
feat(PostgreSQL): database in connection parameters
This commit is contained in:
@ -75,7 +75,8 @@ export class PostgreSQLClient extends AntaresCore {
|
||||
async connect () {
|
||||
if (!this._poolSize) {
|
||||
const client = new Client(this._params);
|
||||
this._connection = client.connect();
|
||||
await client.connect();
|
||||
this._connection = client;
|
||||
}
|
||||
else {
|
||||
const pool = new Pool({ ...this._params, max: this._poolSize });
|
||||
|
Reference in New Issue
Block a user