Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/modules/postgres/deps.ts>parseConnectionUri

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
function parseConnectionUri
import { parseConnectionUri } from "https://deno.land/x/deno_nest@v3.5.0/modules/postgres/deps.ts";

This function parses valid connection strings according to https://www.postgresql.org/docs/14/libpq-connect.html#LIBPQ-CONNSTRING

The only exception to this rule are multi-host connection strings

Parameters

uri: string