import { parseConnectionUri } from "https://dotland.deno.dev/x/postgres@v0.19.0/utils/utils.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