MySQLCursor

class MySQLCursor(stmt: <Error class: unknown class><<Error class: unknown class>>)

MySQL cursor used to iterate over rows in the result and extract fields as typed variables.

Intended to be used through MySQLNativeDriver along with a mapper that converts the complete result into some collection.

Parameters

stmt

CPointer to a MYSQL_STMT that has been executed and has no errors

Constructors

Link copied to clipboard
constructor(stmt: <Error class: unknown class><<Error class: unknown class>>)

Functions

Link copied to clipboard
fun clear()

Clears the internal Arena used holding references to memory allocated in C-interoperability.

Link copied to clipboard
open fun getBoolean(index: Int): Boolean?

Converts the buffer for provided column index to a Boolean?

Link copied to clipboard
open fun getBytes(index: Int): ByteArray?

Converts the buffer for provided column index to a ByteArray?

Link copied to clipboard
fun getDate(index: Int): <Error class: unknown class>?

Converts the buffer for provided column index to a kotlinx.datetime.LocalDate?

Link copied to clipboard
fun getDateTime(index: Int): <Error class: unknown class>?

Converts the buffer for provided column index to a kotlinx.datetime.LocalDateTime?

Link copied to clipboard
open fun getDouble(index: Int): Double?

Converts the buffer for provided column index to a Double?

Link copied to clipboard
fun getDuration(index: Int): <Error class: unknown class>?

Converts the buffer for provided column index to a kotlin.time.Duration?

Link copied to clipboard
open fun getLong(index: Int): Long?

Converts the buffer for provided column index to a Long?

Link copied to clipboard
open fun getString(index: Int): String?

Converts the buffer for provided column index to a String?

Link copied to clipboard
open fun next(): <Error class: unknown class><Boolean>

Move the cursor to the next row