Package-level declarations

Types

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

The MySQL class provides a driver implementation for interacting with a MySQL database. It supports connection pooling, transactional operations, and executing SQL queries.

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

The MySQL class provides a driver implementation for interacting with a MySQL database. It supports connection pooling, transactional operations, and executing SQL queries.

Properties

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

Functions

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