Types

Link copied to clipboard
object Companion

Functions

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: (Notification) -> Unit)
abstract suspend fun listen(channels: List<String>, f: (Notification) -> Unit)
Link copied to clipboard
abstract suspend fun migrate(path: String): Result<Unit>
Link copied to clipboard
abstract suspend fun notify(channel: String, value: String)
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.