ResultMapper

class ResultMapper(registry: ResultConverterRegistry, typeManager: TypeManager)

Entry point of the read conversion chain: hands a decoded value to the converters and checks the result.

One of these belongs to each query, over that query's own ResultConverterRegistry. It is what Row.get and the fetchObject* family call.

Parameters

registry

The converters to consult, chained to the session's.

typeManager

The session's type manager.

Constructors

Link copied to clipboard
constructor(registry: ResultConverterRegistry, typeManager: TypeManager)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun <T> deserialize(source: Any?, expectedType: KType, sourceType: PgType): T

Converts a decoded database value to expectedType.