Package-level declarations

Types

Link copied to clipboard
internal class OctaviusConnection(val stream: PgStream, val databaseKey: DatabaseKey, maxParameterWriterCapacity: Int?, initialParameterWriterCapacity: Int?, logParameterValues: Boolean) : Connection

Represents a connection to a database within the Octavius Framework. It implements the standard JDBC Connection interface but overrides certain behaviors to fit the framework's architecture.

Link copied to clipboard

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

Link copied to clipboard

The two answers about the database that the managers in front of the driver ask for, and a refusal for every other question - InvalidOperationException(FEATURE_NOT_SUPPORTED), as getMetaData() itself gave before.

Link copied to clipboard

Implementation of the standard JDBC DataSource interface for the Octavius driver.

Link copied to clipboard
internal class OctaviusDriver : Driver

The main entry point for the JDBC API into the Octavius driver.

Link copied to clipboard
internal class OctaviusStatement(connection: OctaviusConnection) : Statement

A stub implementation of java.sql.Statement. It primarily exists to allow connection pools (such as HikariCP) to execute connectionInitSql, and Spring's script runner the spring.sql.init scripts, using standard JDBC calls.

Link copied to clipboard
internal class SearchPath(val setting: String, val sessionUser: String?)

A session's search_path, read from what the server reports, and the order the server looks a type name up in.

Functions

Link copied to clipboard

Establishes a new OctaviusSession using the specified properties.

Establishes a new OctaviusSession using the specified url and properties properties.

Establishes a new OctaviusSession using the specified url, user, and password.

Link copied to clipboard

Retrieves a new OctaviusSession from this DataSource.

Retrieves a new OctaviusSession from this Connection.

Retrieves a new OctaviusSession from this DataSource using the specified credentials.

Link copied to clipboard
inline fun <T : Any> Connection.unwrap(): T

Unwraps this Connection to an instance of the specified type T.

inline fun <T> DataSource.unwrap(): T

Unwraps this DataSource to an instance of the specified type T.

Link copied to clipboard

Unwraps this DataSource to its underlying OctaviusDataSource instance.