PgRecord

class PgRecord(val type: PgType.Record, val fieldOids: IntArray, val fields: Array<Any?>) : PgContainer

Represents an anonymous record structure (e.g., ROW(...) without a specific registered composite type) loaded from the database.

Constructors

Link copied to clipboard
internal constructor(type: PgType.Record, fieldOids: IntArray, fields: Array<Any?>)

Properties

Link copied to clipboard
open override val containerOid: Int

OID of the container's own type — the array type rather than its element type, the range type rather than its subtype.

Link copied to clipboard

Array of OIDs corresponding to the fields in this record.

Link copied to clipboard

Array containing the values of the fields in this record.

Link copied to clipboard

The record type definition.

Functions

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

Returns the field at index, cast to T.

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

Returns the PostgreSQL OID of the field at index.