copy

fun copy(url: String = this.url, user: String = this.user, password: String = this.password, readOnly: Boolean = this.readOnly): DbConnectionConfig

Creates a copy of this configuration with the option to override specific properties.

Return

A new DbConnectionConfig instance with the specified changes.

Parameters

url

The JDBC URL. If not specified, uses the current value.

user

The username. If not specified, uses the current value.

password

The password. If not specified, uses the current value.

readOnly

The read-only flag. If not specified, uses the current value.