Soft Delete Strategy

I'm a person of eloquent taste; one who prefers the soft delete. With the current feature set of drizzle, how is everyone pulling this off currently? My personal favorite when using Postgres is by using partial indexes; such as this article describes as I must deal with uniqueness and wish to not index deleted data. https://gusiol.medium.com/soft-delete-and-unique-constraint-da94b41cff62 Does drizzle have any way I can rig my schema to create partial indxes atm?
Medium
Soft Delete and Unique Constraint
When using the soft delete mechanism on the database, you might run into a situation where a record with a unique constraint was deleted…
6 Replies
Andrii Sherman
Andrii Sherman17mo ago
Drizzle ORM has a syntax for partial indexes, but drizzle-kit has no support for it right now. Good thing I'm working on adding partial indexes to drizzle kit + checks to drizzle-kit. This month should be shipped
rykuno
rykunoOP17mo ago
My god, this library is maintained by absolute Chads
WinterOdin
WinterOdin15mo ago
And how are things going?
Andrii Sherman
Andrii Sherman15mo ago
tired question, but we are working on it, were just distracted by a bit bigger issues
Guilherme Rosado
Guilherme Rosado15mo ago
keep rocking @a_sherman !
WinterOdin
WinterOdin15mo ago
Awsome, do you have "date" when you are gonna release it? I'm asking because i don't know if i wanna spend hours on implementation just to get notification about the new drizzle orm update the next day xD
Want results from more Discord servers?
Add your server