What problem does it solve?
Provides managed, relational SQL storage at the Cloudflare edge so Workers can store, query, and migrate structured data without a centralized database, reducing latency and simplifying deployment.
Core Features & Use Cases
- Managed serverless SQLite databases bound to Workers for low-latency reads and transactional writes.
- File-based migrations, prepared statements with parameter binding, and transactional batch operations for safe schema and data changes.
- Use case: store user accounts and application state for an edge-rendered app, run migrations during deploy, and execute transactional batch inserts from Worker requests.
Quick Start
Create a D1 database, add the binding to your wrangler.toml, and apply migrations using the Wrangler CLI.