refactored monorepo for more projects
This commit is contained in:
parent
4632c174dc
commit
9492f1b15e
180 changed files with 1438 additions and 424 deletions
|
|
@ -435,12 +435,22 @@ export class PostgreSQLClient {
|
|||
}
|
||||
|
||||
private buildPoolConfig(): any {
|
||||
return {
|
||||
this.logger.debug('Building PostgreSQL pool config:', {
|
||||
host: this.config.host,
|
||||
port: this.config.port,
|
||||
database: this.config.database,
|
||||
user: this.config.username,
|
||||
password: this.config.password,
|
||||
passwordLength: this.config.password?.length,
|
||||
passwordType: typeof this.config.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 || ''),
|
||||
min: this.config.poolSettings?.min,
|
||||
max: this.config.poolSettings?.max,
|
||||
idleTimeoutMillis: this.config.poolSettings?.idleTimeoutMillis,
|
||||
|
|
@ -455,6 +465,8 @@ export class PostgreSQLClient {
|
|||
}
|
||||
: false,
|
||||
};
|
||||
|
||||
return poolConfig;
|
||||
}
|
||||
|
||||
private setupErrorHandlers(): void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue