registerAutoComposite

inline fun <T : Any> registerAutoComposite(typeName: String = "", schema: String = "")

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

typeName

Optional custom type name in the database. If empty, the name is derived from the class name by converting PascalCase to snake_case.

schema

Optional schema where the type is defined. If empty, the type is resolved through the search path.

Type Parameters

T

The Kotlin data class representing the composite type.

Throws


fun registerAutoComposite(kClass: KClass<*>, typeName: String = "", schema: String = "")

Registers a composite type mapped reflectively onto the data class kClass.

Parameters

kClass

The Kotlin data class representing the composite type.

typeName

Optional custom type name in the database. If empty, the name is derived from the class name by converting PascalCase to snake_case.

schema

Optional schema where the type is defined. If empty, the type is resolved through the search path.

Throws