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

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

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

Properties

attempts: number

By default, any client will only attempt to stablish connection with your database once. Setting this parameter will cause the client to attempt reconnection as many times as requested before erroring

default: 1

interval: number | ((previous_interval: number) => number)

The time to wait before attempting each reconnection (in milliseconds)

You can provide a fixed number or a function to call each time the connection is attempted. By default, the interval will be a function with an exponential backoff increasing by 500 milliseconds