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
§
connectionParams?: {}
[src][name: string]: string | undefined;
Arbitrary connection parameters to send to the server, for example
application_name
.
§
hostname?: string
[src]A literal IP address or host name that can be resolved to an IP address.
Default: 127.0.0.1
.
§
password?: string
[src]Password to authenticate with. Required unless trust
method is enabled server-side.
§
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