findConverter

abstract fun findConverter(sourceClass: KClass<*>, expectedType: KType, sourceType: PgType): ResultConverter<Any, *>?

Looks up the converter that would claim a value, without converting anything.

Return

The converter that would be used, or null if none claims it.

Parameters

sourceClass

The class of the decoded value.

expectedType

The Kotlin type wanted.

sourceType

The PostgreSQL type of the value.