toUrl

fun toUrl(): String

Renders these properties as a JDBC URL.

Neither secret is rendered: not password, and not sslpassword, which unlocks the client private key. The result is a string that tends to end up in logs and diagnostics, and nothing in the driver reconstructs a connection from it - so a URL is not a lossless copy and cannot be used as one. Use copy when you need a complete duplicate of the configuration.