Configuration options for SQL client connection and behavior
Symbol
SQLOptions
type SQLOptions =
const config: SQLOptions = {
host: 'localhost',
port: 5432,
user: 'dbuser',
password: 'secretpass',
database: 'myapp',
idleTimeout: 30,
max: 20,
onconnect: (client) => {
console.log('Connected to database');
}
};