Validate schemas against DB

Hello, did a quick search in here and in the docs but didn't see a related answer, but please feel free to point me in the direction of somewhere else if this has been asked. In my application I am working on I have the limitation that I cannot use drizzle kit to manage the database via migrations, that is done externally to my app. So I am making schemas based off the existing tables in order to CRUD. I'd like to programatically validate that the schemas I have created (aka used drizzle kit to introspect the database) are actually valid for the database I query in my application. This would help avoid coding based off of invalid schemas. Any thoughts on features of drizzle or approaches I could take to achieve? Thanks!
1 Reply
meowbarkmeow69
meowbarkmeow6911mo ago
Didn't read the docs close enough, just found my own answer. Leaving this embarrassing post as a artifact for anyone searching for the same thing though. See the docs here for details on check: https://orm.drizzle.team/kit-docs/commands#check
Drizzle ORM - next gen TypeScript ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
No description
Want results from more Discord servers?
Add your server