Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ConnectPgOptions

import type { ConnectPgOptions } from "https://raw.githubusercontent.com/jakajancar/pgc4d/master/src/mod.ts";
interface ConnectPgOptions {
certFile?: string;
connectionParams?: {
[name: string]: string | undefined;
}
;
database?: string;
debug?: boolean;
hostname?: string;
onNotice?: (notice: PgNotice) => Promise<void>;
password?: string;
path?: string;
port?: number;
sslMode?: "disable" | "verify-full";
transport?: "tcp" | "unix";
username?: string;
}

§Properties

§
certFile?: string
[src]

Path to the CA certificate to verify server's certificate against.

§
connectionParams?: {
[name: string]: string | undefined;
}
[src]

Arbitrary connection parameters to send to the server, for example application_name.

§
database?: string
[src]

Defaults to username.

§
debug?: boolean
[src]

Log debugging messages using console.log. Default: false.

§
hostname?: string
[src]

A literal IP address or host name that can be resolved to an IP address. Default: 127.0.0.1.

§
onNotice?: (notice: PgNotice) => Promise<void>
[src]

Notice received from server. Default implementation writes to console.log.

§
password?: string
[src]

Password to authenticate with. Required unless trust method is enabled server-side.

§
path?: string
[src]

When using transport unix, the filesystem path to the socket.

§
port?: number
[src]

When using transport tcp, the port to connect to. Default: 5432.

§
sslMode?: "disable" | "verify-full"
[src]

Only applies to tcp transport. Defaults to 'verify-full'. See: https://www.postgresql.org/docs/12/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS

§
transport?: "tcp" | "unix"
[src]

Transport to use. Use 'tcp' for both unencrypted TCP as well as TLS ("SSL"). Default: tcp

§
username?: string
[src]

Username to use when connecting. Required.