@riao/dbal
Version:
17 lines (16 loc) • 593 B
TypeScript
import { AppConfig } from 'ts-appconfig';
import { DatabaseConnectionOptions } from '../database';
/**
* Loads & stores the database's configuration.
*
* The configuration file should be named `database-name.db.env` and
* live in the database's folder, i.e. `database/main/main.db.env`.
* The .env file should be .gitignore'd!
*/
export declare class DatabaseEnv extends AppConfig implements DatabaseConnectionOptions {
readonly host: string;
readonly port: number;
readonly username: string;
readonly password: string;
readonly database: string;
}