#Drizzle ORM without Astro DB

3 messages · Page 1 of 1 (latest)

regal crag
#

I'm wanting to use Drizzle ORM for my Astro site with Cloudflare D1, however the only mention of Drizzle ORM on the docs is on the Astro DB integration where it is mentioned that it comes built in with the framework. So, could I use Drizzle with D1 without needing to use Astro DB?

subtle troutBOT
#

Hi @regal crag. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The knowledge sources available to me don't contain enough information to directly answer this question. The documentation provided only covers Drizzle ORM as it's built into Astro DB (astro:db), and doesn't mention using Drizzle ORM independently with Cloudflare D1. [Drizzle ORM]

What I can confirm from the sources is:

  • Astro DB's built-in Drizzle client is tightly coupled to the astro:db module and is automatically configured to work with Astro DB's own database setup.
  • The @astrojs/cloudflare adapter supports deploying to Cloudflare Workers/Pages, but the docs don't mention integrating Drizzle ORM directly with Cloudflare D1 outside of Astro DB. [Astro Cloudflare]

For a definitive answer on using Drizzle ORM standalone with Cloudflare D1 in an Astro project, I'd recommend checking:

In general, since Astro is a standard web framework, there's no inherent reason you couldn't install and use Drizzle ORM as a standalone package — but I cannot confirm this based solely on the available knowledge sources.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: