Special type of question. I use the new worker assets with a framework. i have access to my bindings

Special type of question. I use the new worker assets with a framework. i have access to my bindings on my pages but now i want to connect drizzle
usually you have a db.ts where you export your drizzle client. but here i dont have access to my platform env.

i see some people do
const db = drizzle(env.DB);
everywhere they need the db. is that the way to go? or is it still possible to somehow export 1 drizzle client globally?
Was this page helpful?