Open mkieblesz opened 1 year ago
I came here to suggest similar, but specifically because of SQLite and its lack of an enum type or similar. The CHECK approach is basically the only way to get the same behavior, so making this improvement would be a huge boon for SQLite users.
At the moment
kysely-codegen
is not introspecting checks in postgres dialect.Following table:
becomes
while it should be
I didn't take a look at the codebase yet, so if you could point me to the right direction I could implement that. Thanks!
ps. useful take on ENUMS vs CHECKS https://stackoverflow.com/a/10984951/11060504
Upvote & Fund