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)
3 Replies
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.
Ultimately, you do have to import from each file. If your environment supports it, you could consider using import.meta.glob
Thank you!