registerAutoComposite
Registers a composite type mapped reflectively onto the data class T.
Property names are matched to attribute names by converting camelCase to snake_case; PgName overrides that per property.
Parameters
Optional custom type name in the database. If empty, the name is derived from the class name by converting PascalCase to snake_case.
Optional schema where the type is defined. If empty, the type is resolved through the search path.
Type Parameters
The Kotlin data class representing the composite type.
Throws
if T is not a data class.
Registers a composite type mapped reflectively onto the data class kClass.
Parameters
The Kotlin data class representing the composite type.
Optional custom type name in the database. If empty, the name is derived from the class name by converting PascalCase to snake_case.
Optional schema where the type is defined. If empty, the type is resolved through the search path.
Throws
if kClass is not a data class.