huge refactor to remove depenencie hell and add typesafe container
This commit is contained in:
parent
28b9822d55
commit
843a7b9b9b
148 changed files with 3603 additions and 2378 deletions
|
|
@ -442,15 +442,20 @@ export class PostgreSQLClient {
|
|||
user: this.config.username,
|
||||
passwordLength: this.config.password?.length,
|
||||
passwordType: typeof this.config.password,
|
||||
passwordValue: this.config.password ? `${this.config.password.substring(0, 3)}***` : 'NO_PASSWORD',
|
||||
passwordValue: this.config.password
|
||||
? `${this.config.password.substring(0, 3)}***`
|
||||
: 'NO_PASSWORD',
|
||||
});
|
||||
|
||||
|
||||
const poolConfig = {
|
||||
host: this.config.host,
|
||||
port: this.config.port,
|
||||
database: this.config.database,
|
||||
user: this.config.username,
|
||||
password: typeof this.config.password === 'string' ? this.config.password : String(this.config.password || ''),
|
||||
password:
|
||||
typeof this.config.password === 'string'
|
||||
? this.config.password
|
||||
: String(this.config.password || ''),
|
||||
min: this.config.poolSettings?.min,
|
||||
max: this.config.poolSettings?.max,
|
||||
idleTimeoutMillis: this.config.poolSettings?.idleTimeoutMillis,
|
||||
|
|
@ -465,7 +470,7 @@ export class PostgreSQLClient {
|
|||
}
|
||||
: false,
|
||||
};
|
||||
|
||||
|
||||
return poolConfig;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue