IPostgresSQL

Inheritors

Functions

Link copied to clipboard
abstract suspend fun acquire(): Result<Connection>
Link copied to clipboard
abstract suspend fun begin(): Result<Transaction>
Link copied to clipboard
abstract suspend fun close(): Result<Unit>
Link copied to clipboard
abstract suspend fun execute(statement: Statement): Result<Long>
abstract suspend fun execute(sql: String): Result<Long>
Link copied to clipboard
abstract suspend fun fetchAll(statement: Statement): Result<ResultSet>
abstract suspend fun fetchAll(sql: String): Result<ResultSet>
abstract suspend fun <T> fetchAll(statement: Statement, rowMapper: RowMapper<T>): Result<List<T>>
open suspend fun <T> fetchAll(sql: String, rowMapper: RowMapper<T>): Result<List<T>>
Link copied to clipboard
abstract suspend fun listen(channel: String, f: suspend (Notification) -> Unit)

Listens for notifications on a specified PostgreSQL channel and executes a callback for each received notification.

abstract suspend fun listen(channels: List<String>, f: suspend (Notification) -> Unit)

Listens for notifications on specified PostgreSQL channels and executes a callback for each received notification.

Link copied to clipboard
abstract suspend fun migrate(path: String, table: String, schema: String?, createSchema: Boolean, afterStatementExecution: suspend (Statement, Duration) -> Unit, afterFileMigration: suspend (Migration, Duration) -> Unit): Result<Migrator.Results>
Link copied to clipboard
abstract suspend fun notify(channel: String, value: String)

Publishes a notification to a specified PostgreSQL channel.

Link copied to clipboard
abstract fun poolIdleSize(): Int
Link copied to clipboard
abstract fun poolSize(): Int
Link copied to clipboard
open suspend fun <T> transaction(f: suspend Transaction.() -> T): T
Link copied to clipboard
open fun validateChannelName(channel: String)

Validates the name of a PostgreSQL channel to ensure it adheres to the naming rules.