createConnection

fun createConnection(url: String, info: Properties? = null): Connection

Creates a new database connection using the provided JDBC URL and optional properties.

Return

A newly established Connection (specifically, an OctaviusConnection).

Parameters

url

The JDBC URL (e.g., jdbc:octavius://localhost:5432/db).

info

Additional connection properties.

Throws

if the connection cannot be established or the server version is unsupported.


Creates a new database connection using the pre-parsed OctaviusProperties.

Return

A newly established Connection.

Parameters

properties

The parsed configuration properties.

Throws

if the connection cannot be established or the server version is unsupported.