rwsdk-database-do
CommunitySQLite DO with type-safe queries
Authorkcc989
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps developers configure and use SQLite-based Durable Objects in Cloudflare Workers, providing a structured approach to migrations, type-safe queries, and isolated database instances.
Core Features & Use Cases
- Migration-driven schema: Define migrations that evolve the database schema with safe rollback paths across DOs.
- Type-safe queries: Leverage Kysely-powered typings inferred from migrations to perform CRUD, joins, and complex reads without runtime schema hints.
- Seeding and maintenance: Seed initial data and manage migrations during development and deployment in isolated environments.
Quick Start
Follow the steps to set up a Durable Object-backed SQLite database:
- Create a migrations file at db/migrations.ts
- Create a database instance in db/db.ts
- Implement a Durable Object class in db/durableObject.ts
- Export the DO from worker.ts
- Update wrangler.toml to bind the durable object
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: rwsdk-database-do Download link: https://github.com/kcc989/logoer/archive/main.zip#rwsdk-database-do 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 223,000+ vetted skills library on demand.