Package-level declarations

Types

Link copied to clipboard

PostgreSQL-specific ValueEncoder for ByteArray.

Link copied to clipboard
Link copied to clipboard
data class Notification(val channel: String, val value: ResultSet.Row.Column)

Represents a notification received from a PostgreSQL listen/notify channel.

Link copied to clipboard
class PostgreSQL(url: String, username: String, password: String, options: ConnectionPool.Options = ConnectionPool.Options(), val encoders: ValueEncoderRegistry = ValueEncoderRegistry()) : IPostgresSQL

PostgreSQL class provides mechanisms to interact with a PostgreSQL database. It implements Driver, Driver.Pool, and Driver.Transactional interfaces, offering functionalities such as connection pooling, executing queries, fetching data, and handling transactions.

class PostgreSQL(url: String, username: String, password: String, options: ConnectionPool.Options = ConnectionPool.Options(), val encoders: ValueEncoderRegistry = ValueEncoderRegistry()) : IPostgresSQL

PostgreSQL class provides mechanisms to interact with a PostgreSQL database. It implements Driver, Driver.Pool, and Driver.Transactional interfaces, offering functionalities such as connection pooling, executing queries, fetching data, and handling transactions.

Link copied to clipboard
class PostgreSQLImpl(pool: ConnectionPool, connectionFactory: PostgresqlConnectionFactory, val encoders: ValueEncoderRegistry = ValueEncoderRegistry()) : IPostgresSQL

Properties

Link copied to clipboard
val fn: CPointer<CFunction<(CValue<Sqlx4kPostgresPtr>, CPointer<Sqlx4kPostgresResult>?) -> Unit>>

Functions

Link copied to clipboard
expect fun postgreSQL(url: String, username: String, password: String, options: ConnectionPool.Options = ConnectionPool.Options(), encoders: ValueEncoderRegistry = ValueEncoderRegistry()): IPostgresSQL
actual fun postgreSQL(url: String, username: String, password: String, options: ConnectionPool.Options, encoders: ValueEncoderRegistry): IPostgresSQL
actual fun postgreSQL(url: String, username: String, password: String, options: ConnectionPool.Options, encoders: ValueEncoderRegistry): IPostgresSQL
Link copied to clipboard
fun CPointer<Sqlx4kPostgresResult>?.rowsAffectedOrError(): Long
Link copied to clipboard
fun CPointer<Sqlx4kPostgresResult>?.rtOrError(): CPointer<out CPointed>
Link copied to clipboard
inline suspend fun sqlx(crossinline operation: (continuationPtr: CPointer<out CPointed>) -> Unit): CPointer<Sqlx4kPostgresResult>?
Link copied to clipboard
fun CPointer<Sqlx4kPostgresResult>?.throwIfError()
fun Sqlx4kPostgresResult.throwIfError()
Link copied to clipboard
fun Sqlx4kPostgresResult.toResultSet(): ResultSet
Link copied to clipboard
inline fun <T> CPointer<Sqlx4kPostgresResult>?.use(block: (Sqlx4kPostgresResult) -> T): T