ConverterRegistry
A registry managing the converters used for mapping between Kotlin objects and PostgreSQL types.
It holds both ResultConverterRegistry for handling incoming data from the database, and ParameterConverterRegistry for handling outbound query parameters. Furthermore, it keeps track of registered composite type mappings.
Properties
A thread-safe map mapping database composite names to their corresponding Kotlin classes.
The registry responsible for parameter conversion (Kotlin -> PostgreSQL).
A thread-safe map holding registration details for custom Kotlin composite data classes.
A thread-safe map holding what every registered Kotlin enum was registered as.
The registry responsible for result conversion (PostgreSQL -> Kotlin).
Functions
Registers a Kotlin data class to be automatically mapped to and from a PostgreSQL composite type.
Records that kClass is the PostgreSQL enum qualifiedName, under the conventions the converters were built with.
Registers a custom ParameterConverter.
Registers a custom ResultConverter.