d1
OfficialServerless SQL at the edge for Workers
Authortheslashdojo
Version1.0.0
Installs0
System Documentation
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.
Dependency Matrix
Required Modules
wrangler
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: d1 Download link: https://github.com/theslashdojo/dojo/archive/main.zip#d1 Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.