D1: our quest to simplify databases
Sep 27, 2022Nevi Shah, Glen Maddern

Summary
This post introduces D1, Cloudflare's first SQL database designed to work seamlessly with Cloudflare Workers. It details the development journey, user experience with Wrangler CLI and dashboard, local development and testing capabilities, automatic backup and restore features, and a sneak peek into the implementation of JavaScript transactions using a new `db.transaction()` API within stored procedures executed via Workers. This significantly expands Cloudflare's data storage offerings beyond key-value stores, Durable Objects, and blob storage, enabling full-stack applications on Cloudflare's global network.
More from the Data Infrastructure & Analytics trail
- Introducing Cloudflare Basin: an open, serverless data platform, now generally available
- Introducing the Billable Usage API: programmatic cost visibility for Cloudflare
- Announcing the Monetization Gateway: charge for any resource behind Cloudflare via x402
- How we built Cloudflare's data platform and an AI agent on top of it
- Iran's Internet is partially restored, Cloudflare Radar data shows