RowMappers

internal class RowMappers(typeRegistry: TypeRegistry, val json: Json)

Factory providing high-level RowMapper implementations for converting PostgreSQL ResultSet rows into Kotlin data structures.

This class coordinates between JDBC's mapping infrastructure and Octavius's custom type conversion logic provided by io.github.octaviusframework.db.core.type.ResultSetValueExtractor.

Parameters

typeRegistry

The registry containing OID-to-type mappings and custom type definitions.

Constructors

Link copied to clipboard
constructor(typeRegistry: TypeRegistry, json: Json)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val json: Json

Functions

Link copied to clipboard

Creates a mapper that converts each row into a Map<String, Any?>.

Link copied to clipboard

Creates a mapper that converts each row using a provided manual mapper.

Link copied to clipboard

Creates a mapper that converts each row into an instance of a specified Kotlin data class.

Link copied to clipboard

Creates a mapper that extracts a single value from the first column of the result set.