README.md

Created about 12 hours ago

attributes
source_pathreferences/d1/README.md
source_sha256347ea7c6b9d6ac23b2d5ffeb9b1999d846171e8cd7d3d3ce90f4e9971b536fcf
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/d1/README.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

Cloudflare D1 Database

Use D1 for managed relational application data with SQLite semantics. For an existing external database, consider Hyperdrive; for per-entity coordination, consider Durable Objects. See storage options before choosing a product.

Read the relevant current documentation before implementing. These references route tasks to the source of truth rather than maintaining copies of APIs, configuration, or plan tables.

Start here

  • Get started: create a database, bind it to a Worker, and run a first query.
  • configuration.md: bindings, environments, migrations, local development, and ORM integration.
  • api.md: parameterized queries, batches, sessions, HTTP access, and testing.
  • patterns.md: query design, caching, tenant isolation, replication, and recovery.
  • gotchas.md: errors, types, constraints, performance, and limits.

Check limits and pricing for capacity, allowances, and plan availability; do not infer them from old examples.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.