kristiandupont/extract-pg-schema

Extracting column check constraints ?

Closed this issue · 2 comments

It would be nice to be able to extract column check constraints so they could be used by Kanel.
I'm working on kanel-effect-schema support right now and interested in Codegenerating schema validation, as well.
Could've contribute the respective check constraints to kanel-zod after that.

Also considering adding column check constraints support to Supabase.

I agree. Especially for Schemalint to improve, this library needs to extract those. I don't have any excess time at the moment, so I am not going to make any promises about timelines but just to state that I agree :-)

@kristiandupont added a simple and naive check constraints extraction, please review when you'll get some free time.