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

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

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

The connection string must match the following URI structure. All parameters but database and user are optional

postgres://user:password@hostname:port/database?sslmode=mode...

You can additionally provide the following url search parameters

  • application_name
  • dbname
  • host
  • options
  • password
  • port
  • sslmode
  • user
definition: string