RowMappers

internal class RowMappers(typeRegistry: TypeRegistry)

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)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

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

Link copied to clipboard
fun <T : Any> DataObjectMapper(kClass: KClass<T>): RowMapper<T>

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.