Aarón Contreras
DTDrizzle Team
•Created by Aarón Contreras on 2/24/2025 in #help
Column name `as string`, needed for performance?
I joined my first project with drizzle about a year ago. I noticed that all columns definitions were including
as string
or as const
after the name. When I asked about it I was told this was needed for performance of the type system, and they didn't go into too much detail about it. Is that true? are these casts needed for the TS server to be able to keep up with all the types gymnastics in the library? Or can we safely remove them already?2 replies
DTDrizzle Team
•Created by Aarón Contreras on 11/13/2024 in #help
Schema out of sync
Somehow my DB schema and my code got out of sync. Specifically, I have an
ON DELETE CASCADE
clause in the code that is not set at the DB level. Is there any way to ask drizzle to sync the code and the DB schema? Trying to generate a migration does not do the trick.1 replies