AsyncDBConfig

constructor(dbName: String, username: String, password: String, host: String)

Creates a new AsyncDBConfig instance.

Parameters

host

PostgreSQL database hostname.

username

Connection credentials username.

password

Connection credentials password.

dbName

PostgreSQL database name.


constructor(dbName: String, username: String, password: String, host: String, poolSize: Int)

Creates a new AsyncDBConfig instance.

Parameters

host

PostgreSQL database hostname.

username

Connection credentials username.

password

Connection credentials password.

dbName

PostgreSQL database name.

poolSize

Max connection pool size.

Defaults to 10.


constructor(dbName: String, username: String, password: String, host: String, port: Int, poolSize: Int)

Creates a new AsyncDBConfig instance.

Parameters

host

PostgreSQL database hostname.

port

PostgreSQL host port.

Defaults to 5432.

username

Connection credentials username.

password

Connection credentials password.

dbName

PostgreSQL database name.

poolSize

Max connection pool size.

Defaults to 10.