Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hex/src/lib/data/deps.ts>postgres.TLSOptions

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface postgres.TLSOptions
import { type postgres } from "https://deno.land/x/hex@0.6.5/src/lib/data/deps.ts";
const { TLSOptions } = postgres;

Properties

enabled: boolean

If TLS support is enabled or not. If the server requires TLS, the connection will fail.

Default: true

enforce: boolean

This will force the connection to run over TLS If the server doesn't support TLS, the connection will fail

Default: false

caCertificates: string[]

A list of root certificates that will be used in addition to the default root certificates to verify the server's certificate.

Must be in PEM format.

Default: []