New library: Generate Zod schemas from Postgres #1821
kristiandupont
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
as recommended in the readme, I wanted to let you know that I've made a tool that generates Zod schemas from a live Postgres database. It's an extension to Kanel which generates plain Typescript types.
It's an early release so there are situations where it can get confused. My goal (with Kanel and thus with this as well) is to support advanced Postgres features that are often ignored by people who rely on ORM's. Using the database as the source of truth offers a number of advantages (as well as some inconveniences, it's a trade-off like everything else) that I am exploring.
I would love to hear thoughts.
Beta Was this translation helpful? Give feedback.
All reactions