Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/postgres/mod.ts>TLSOptions

PostgreSQL driver for Deno
Extremely Popular
Latest
interface TLSOptions
import { type TLSOptions } from "https://deno.land/x/postgres@v0.19.3/mod.ts";

The Transport Layer Security (TLS) protocol options to be used by the database connection

Properties

enabled: boolean

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

Default: true

enforce: boolean

Forces 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: []