registerAutoCompositeType
Registers a Kotlin data class to be automatically mapped to and from a PostgreSQL composite type.
Parameters
kClass
the Kotlin data class to register.
name
the name of the composite type in PostgreSQL.
schema
the schema of the composite type (defaults to an empty string for the search path).
Throws
if kClass is not a data class.