OctaviusConnectionFactory

Factory object responsible for establishing physical connections to a PostgreSQL database.

It handles URL parsing, socket creation, SSL negotiation, and the PostgreSQL startup and authentication sequences. It ensures that the connected server meets the minimum version requirement (PostgreSQL 18+).

Functions

Link copied to clipboard

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

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

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