ParameterMapper

internal class ParameterMapper(registry: ParameterConverterRegistry, typeManager: TypeManager)

Entry point of the write conversion chain: hands a Kotlin value to the converters.

One of these belongs to each query, over that query's own ParameterConverterRegistry. It is what the parameter serializer calls for every value bound to a statement.

Parameters

registry

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

typeManager

The session's type manager.

Constructors

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

Functions

Link copied to clipboard
fun convert(source: Any?, expectedOid: Int): Any?

Converts a Kotlin value into something a codec can encode.