Hello 👋
Is there an interest in adding some convenience functions to the library for enums support?
For eg. postgres implementation could look like :
Copy code
class PGEnum<T : Enum<T>>(enumTypeName: String, enumValue: T?) : PGobject() {
init {
value = enumValue?.name
type = enumTypeName
}
}
inline fun <reified T : Enum<T>> Table.postgresEnumeration(
columnName: String,
postgresEnumName: String
) = customEnumeration(columnName, postgresEnumName,
{ value -> enumValueOf<T>(value as String) }, { PGEnum(postgresEnumName, it) })