tcurdt
Explore posts from serversDTDrizzle Team
•Created by tcurdt on 5/29/2024 in #help
schema validation enforcement
The above schema is nice and well - but how can I enforce that
email
actually only allows to store strings that are emails?
So I looked at drizzle-zod
but it looks like I would have to define the schema twice?
There is no way to attach this to the table schema itself?
What about using postgres constraints?
https://www.postgresql.org/docs/current/ddl-constraints.html1 replies
DTDrizzle Team
•Created by tcurdt on 7/19/2023 in #help
accessing results of a select
I am confused. Based on this docs https://orm.drizzle.team/docs/crud this here
todos
should be an array of objects. But it seems to be
What am I missing?9 replies