config

fun config(config: DatabaseConfig)

Sets the database configuration.

Parameters

config

The DatabaseConfig object.


fun config(driver: String, url: String, user: String = "", password: String = "")

Sets the database configuration using individual parameters.

Parameters

driver

The JDBC driver class name.

url

The JDBC connection URL.

user

The username for the database connection.

password

The password for the database connection.


The database configuration.