Marcus Ilgner
05/02/2021, 2:44 PMclass PGEnum
and while it is quite straightforward to implement an enum type mapping from that, it would be nice to have this out of the box. Similarly, there is a some code floating around for array columns and it can be adapted to also translate to columns of Set<T : Enum>
. I just took the liberty of bundling those up as https://github.com/milgner/exposed-postgres but it's also a bit obscure now and I think it could benefit more people if it was in the library itself. I haven't looked at the whole infrastructure for Exposed yet but I'd be willing to put in some additional work in order to integrate these extensions properly.