inceptum
Version:
hipages take on the foundational library for enterprise-grade apps written in NodeJS
19 lines (18 loc) • 495 B
TypeScript
export interface PoolConfig {
/**
* The hostname of the database you are connecting to. (Default: localhost)
*/
host: string;
/**
* The port number to connect to. (Default: 3306)
*/
port?: number;
/**
* The milliseconds before a timeout occurs during the initial connection to the MySQL server. (Default: 10 seconds)
*/
connectTimeout?: number;
}
export interface ConfigurationObject<T extends PoolConfig> {
master?: T;
slave?: T;
}