·cloudflare-d1
</>

cloudflare-d1

jezweb/claude-skills

在 Cloudflare 的边缘使用 D1 无服务器 SQLite 数据库构建。使用场合:创建数据库、编写 SQL 迁移、从 Workers 查询 D1、处理关系数据或排除 D1_ERROR、语句太长、迁移失败或查询性能问题。防止 14 个已记录的错误。

414安装·11热度·@jezweb

安装

$npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-d1

SKILL.md

Status: Production Ready ✅ Last Updated: 2026-01-20 Dependencies: cloudflare-worker-base (for Worker setup) Latest Versions: wrangler@4.59.2, @cloudflare/workers-types@4.20260109.0

| Statement too long | Large INSERT with 1000+ rows | Break into batches of 100-250 using batch() | | Network connection lost | Transient failure or large import | Implement retry logic (see below) or break into smaller chunks | | Too many requests queued | Individual queries in loop | Use batch() instead of loop |

| D1TYPEERROR | Using undefined in bind | Use null for optional values: .bind(email, bio \|\| null) | | Transaction conflicts | BEGIN TRANSACTION in migration | Remove BEGIN/COMMIT (D1 handles automatically) | | Foreign key violations | Schema changes break constraints | Use PRAGMA deferforeignkeys = true |

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-d1
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 cloudflare-d1?

在 Cloudflare 的边缘使用 D1 无服务器 SQLite 数据库构建。使用场合:创建数据库、编写 SQL 迁移、从 Workers 查询 D1、处理关系数据或排除 D1_ERROR、语句太长、迁移失败或查询性能问题。防止 14 个已记录的错误。 来源:jezweb/claude-skills。

如何安装 cloudflare-d1?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-d1 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/jezweb/claude-skills