Interface DBConfigAuth

options for the database connection. authentication can alternatively be provided via environment variables, see https://www.postgresql.org/docs/9.1/libpq-envars.html

interface DBConfigAuth {
    host?: string;
    port?: number;
    database?: string;
    user?: string;
    password?: string | () => string | Promise<string>;
}

Properties

host?: string

The host of the database

port?: number

The port of the database

database?: string

The name of the database

user?: string

The username of the database

password?: string | () => string | Promise<string>

The password of the database