·d1-database
</>

d1-database

null-shot/cloudflare-skills

Serverless SQLite database for structured data at the edge. Load when building relational schemas, running SQL queries, managing migrations, performing CRUD operations, using JOINs/aggregations, handling JSON columns, or enforcing foreign keys with D1.

2Installs·0Trend·@null-shot

Installation

$npx skills add https://github.com/null-shot/cloudflare-skills --skill d1-database

SKILL.md

D1 is Cloudflare's native serverless SQL database built on SQLite. Run queries at the edge with automatic replication and low latency.

| Relational data | Structured tables with relationships | | Complex queries | JOINs, aggregations, full SQL support | | User data | Accounts, profiles, settings | | Content management | Posts, comments, metadata | | E-commerce | Products, orders, inventory | | Analytics | Event tracking with SQL queries |

| Execute query | db.prepare(sql).bind(...).run() | { success: boolean, meta: {...} } | | Get all rows | db.prepare(sql).bind(...).all() | { results: T[], success: boolean } | | Get first row | db.prepare(sql).bind(...).first() | T \| null | | Get single value | db.prepare(sql).bind(...).first('column') | any \| null |

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/null-shot/cloudflare-skills --skill d1-database
Category
</>Dev Tools
Verified
First Seen
2026-02-05
Updated
2026-02-18

Quick answers

What is d1-database?

Serverless SQLite database for structured data at the edge. Load when building relational schemas, running SQL queries, managing migrations, performing CRUD operations, using JOINs/aggregations, handling JSON columns, or enforcing foreign keys with D1. Source: null-shot/cloudflare-skills.

How do I install d1-database?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/null-shot/cloudflare-skills --skill d1-database Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/null-shot/cloudflare-skills