drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
24.78k stars 656 forks source link

Expose query builder config #561

Open dankochetov opened 1 year ago

dankochetov commented 1 year ago

Based on Discord thread https://discord.com/channels/1043890932593987624/1104858040936706140

machour commented 1 year ago

I also needed to access:

For the later, would it be possible to generate an additional file with a fixated name (generated.ts ?) that would import/export from the latest generated files ?

jakeleventhal commented 1 year ago

I would definitely need these exposed. for reference, I have a lot of prisma code im looking to migrate and in many places i have functions that dynamically generate queries with a return type of Prisma.ProductFindManyArgs or something like that