Drizzle folder schema

Sure u can do this but can't find it in the docs, how can i pass schema within a folder to a db instance so it has all of the types. Something like this? I'm sure there must be a way to do this without importing each individual file. Thanks! (schema path is right just can't import as its a folder not a file)
No description
3 Replies
Luxaritas
Luxaritas2mo ago
There is an example of this at https://orm.drizzle.team/docs/rqb
Drizzle ORM - Query
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Luxaritas
Luxaritas2mo ago
Ultimately, you do have to import from each file. If your environment supports it, you could consider using import.meta.glob
Charlie Lamb
Charlie LambOP2mo ago
Thank you!
Want results from more Discord servers?
Add your server