Typing type Table based on my schema

I'm trying to abstract deleting rows for 4 of my tables. e.g. deleteRow(schema.myTable, '123myid123') how could I type the deleteRow function so it gives me type checks against my schema? Thanks!
1 Reply
Kasper
Kasper8mo ago
Do you have some example schema you could show? You can also read about how to use delete here: https://orm.drizzle.team/docs/delete
Drizzle ORM - Delete
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Want results from more Discord servers?
Add your server