| 118 | }; |
| 119 | |
| 120 | export const getScramConfiguration = (tls: boolean): TcpConfiguration => { |
| 121 | return { |
| 122 | applicationName: config.postgres_scram.applicationName, |
| 123 | database: config.postgres_scram.database, |
| 124 | hostname: config.postgres_scram.hostname, |
| 125 | host_type: "tcp", |
| 126 | options: {}, |
| 127 | password: config.postgres_scram.password, |
| 128 | port: config.postgres_scram.port, |
| 129 | tls: tls ? enabled_tls : disabled_tls, |
| 130 | user: config.postgres_scram.users.scram, |
| 131 | }; |
| 132 | }; |
| 133 | |
| 134 | export const getScramSocketConfiguration = (): SocketConfiguration => { |
| 135 | return { |