JdbcResult

class JdbcResult(val result: ResultSet) : ResultApi, RowApi

Class responsible for wrapping a ResultSet generated by executing a statement that queries a JDBC database.

Constructors

Link copied to clipboard
constructor(result: ResultSet)

Properties

Link copied to clipboard

The actual ResultSet returned by the database after statement execution.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open fun <T> getObject(index: Int, type: Class<T>?, columnType: IColumnType<*>): T?
open fun <T> getObject(name: String, type: Class<T>, columnType: IColumnType<*>): T?
open override fun getObject(index: Int): Any?
open override fun getObject(name: String): Any?
open override fun <T> getObject(index: Int, type: Class<T>): T?
open override fun <T> getObject(name: String, type: Class<T>): T?
Link copied to clipboard
open override fun <T> mapRows(block: (RowApi) -> T?): Flow<T?>
Link copied to clipboard
fun next(): Boolean

Moves from the current position in the ResultSet to the next row and returns true, or returns false if there are no more rows to move forward to.

Link copied to clipboard

Releases the underlying statement object, and any database or driver resources, as well as its ResultSet.

Link copied to clipboard
open override fun toString(): String