Open Aditya94A opened 4 years ago
Some databases like a postgresql require additional actions like creating an enum type and also require special types (PgEnum) to be provided for a statement. Another could return Int value from a database (H2).
If you could cover all cases in a generic way it will be great.
I was able to reduce boilerplate to something like
or even better this:
with the following extension functions
Would be great if we can provide a customStringEnumeration or something like such helper method within the library. Let me know if this looks good,I'll send a PR (or let me know if there could be any issues with this strategy)