Is it possible to use drizzle with d1 on http

Unfortunately, it's not possible to access cloudflare bindings in non worker envinroment. But I have some task functions that need to access the db but not from the worker.
3 Replies
yinks
yinksOP7mo ago
I'm aware there is D1 http adapter for Drizzle Kit, but I'm referring to the db client https://orm.drizzle.team/learn/guides/d1-http-with-drizzle-kit
Drizzle ORM - Cloudflare D1 HTTP API with Drizzle Kit
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
alex
alex6mo ago
also wondering this
Melihsub
Melihsub2mo ago
So any updates or any tutorial on this? It seems like there is absolute zero explanation or resources available

Did you find this page helpful?