·durable-objects
</>

durable-objects

创建并查看 SQLite 支持的 Cloudflare 持久对象。在构建有状态协调(聊天室、多人游戏、预订系统)、实施 RPC 方法、SQLite 存储 API、PITR 恢复、警报、WebSocket 休眠、服务绑定或审查 DO 代码以获得最佳实践时使用。全面覆盖 SQL 查询、事务、命名空间 API 和测试。

4安装·0热度·@null-shot

安装

$npx skills add https://github.com/null-shot/cloudflare-skills --skill durable-objects

如何安装 durable-objects

通过命令行快速安装 durable-objects AI 技能到你的开发环境

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

来源:null-shot/cloudflare-skills。

SKILL.md

查看原文

Build stateful, coordinated applications on Cloudflare's edge using Durable Objects.

Important: This guide focuses on SQLite-backed Durable Objects (recommended for all new projects). Configure with newsqliteclasses in migrations. Legacy KV-backed Durable Objects exist for backwards compatibility but are not covered in detail here to avoid confusion.

Search: sql.exec, getByName, transactionSync, ctx.storage.sql, blockConcurrencyWhile

创建并查看 SQLite 支持的 Cloudflare 持久对象。在构建有状态协调(聊天室、多人游戏、预订系统)、实施 RPC 方法、SQLite 存储 API、PITR 恢复、警报、WebSocket 休眠、服务绑定或审查 DO 代码以获得最佳实践时使用。全面覆盖 SQL 查询、事务、命名空间 API 和测试。 来源:null-shot/cloudflare-skills。

可引用信息

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

安装命令
npx skills add https://github.com/null-shot/cloudflare-skills --skill durable-objects
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-10

Browse more skills from null-shot/cloudflare-skills

快速解答

什么是 durable-objects?

创建并查看 SQLite 支持的 Cloudflare 持久对象。在构建有状态协调(聊天室、多人游戏、预订系统)、实施 RPC 方法、SQLite 存储 API、PITR 恢复、警报、WebSocket 休眠、服务绑定或审查 DO 代码以获得最佳实践时使用。全面覆盖 SQL 查询、事务、命名空间 API 和测试。 来源:null-shot/cloudflare-skills。

如何安装 durable-objects?

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

这个 Skill 的源码在哪?

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

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-25