Adding proper TLS/SSL support to poolOptions so that the similaritySearchVectorWithScore function actually connects to Postgres via TLS/SSL when specified in the additionalConfig.
This commit is contained in:
parent
6013743705
commit
5da3e3cc3e
|
|
@ -253,7 +253,8 @@ const similaritySearchVectorWithScore = async (
|
|||
port: postgresConnectionOptions.port,
|
||||
user: postgresConnectionOptions.username,
|
||||
password: postgresConnectionOptions.password,
|
||||
database: postgresConnectionOptions.database
|
||||
database: postgresConnectionOptions.database,
|
||||
ssl: postgresConnectionOptions.extra?.ssl
|
||||
}
|
||||
const pool = new Pool(poolOptions)
|
||||
const conn = await pool.connect()
|
||||
|
|
|
|||
Loading…
Reference in New Issue