0Pricing
Edge Computing with Cloudflare Workers & Deno · Lesson

Querying with D1 SQL at the Edge

Use Cloudflare D1, a serverless SQLite database, to run relational queries from your Workers at the edge.

What is D1?

Cloudflare D1 is a serverless SQL database built on SQLite. It brings relational queries to the edge, complementing key-value (KV) and Durable Objects.

KV vs D1

When to use which:

  • KV: simple key-value, eventual consistency
  • D1: structured data, joins, transactions, SQL

All lessons in this course

  1. Cloudflare KV Store
  2. Durable Objects Explained
  3. Integrating Deno with Edge Storage
  4. Querying with D1 SQL at the Edge
← Back to Edge Computing with Cloudflare Workers & Deno