Row

class Row(rawData: ByteArray, columnOffsets: IntArray, columnLengths: IntArray, val metadata: RowMetadata, typeRegistry: TypeRegistry, resultMapper: ResultMapper)

Represents a single row returned from a query execution.

Row holds the decoded raw data for each column and provides methods to access these values, either in their raw form or mapped to a specific Kotlin type using the configured ResultMapper.

Constructors

Link copied to clipboard
internal constructor(rawData: ByteArray, columnOffsets: IntArray, columnLengths: IntArray, metadata: RowMetadata, typeRegistry: TypeRegistry, resultMapper: ResultMapper)

Properties

Link copied to clipboard

A list containing the names of all columns in this row, in order.

Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> get(index: Int): T

Retrieves the value of the column at the specified index, mapped to the reified type T.

inline fun <T> get(columnName: String): T

Retrieves the value of the column with the specified columnName, mapped to the reified type T.

fun <T> get(index: Int, targetType: KType): T

Retrieves the value of the column at the specified index, mapped to the specified targetType.

fun <T> get(columnName: String, targetType: KType): T

Retrieves the value of the column with the specified columnName, mapped to the specified targetType.

Link copied to clipboard
fun getColumnIndex(columnName: String): Int

Retrieves the zero-based index of the column with the given columnName.

Link copied to clipboard
fun getOid(index: Int): Int

Retrieves the PostgreSQL Object Identifier (OID) of the type for the column at the specified index.

Link copied to clipboard
fun getRaw(index: Int): Any?

Retrieves the raw, decoded database value for the column at the specified index.