cloudflare-workers-database

Manage Cloudflare Workers D1 databases with Drizzle ORM schemas and migrations.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/onichandame/zapdo --skill cloudflare-workers-database
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workers-database
Source: https://github.com/onichandame/zapdo/tree/main/.opencode/skill/cloudflare-workers-api/database
Command: npx skills add https://github.com/onichandame/zapdo --skill cloudflare-workers-database

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cloudflare Workers often struggle to persist structured data efficiently using D1 and a scalable ORM. This skill provides a repeatable, schema-driven approach to manage data with Drizzle ORM, reliable pagination, and safe transaction patterns at the edge.

Core Features & Use Cases

  • Schema Management: Define and evolve database schemas with Drizzle ORM for D1 in a Cloudflare Workers environment.
  • Advanced Querying & Pagination: Build complex filters, analytics, and paginated results across user data.
  • Transaction Patterns & Auditing: Execute safe transactions with automatic activity logging for auditability.
  • Migrations & Evolution: Migrate schemas safely with a structured migration workflow.

Quick Start

Deploy a minimal Cloudflare Worker, wire up D1 with Drizzle, run the included migrations, and perform a sample query to fetch a user's tasks.

Frequently Asked Questions about cloudflare-workers-database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Cloudflare D1 schemas with Drizzle ORM?

Manage Cloudflare D1 schemas by defining type-safe models with Drizzle ORM and enforcing structured migrations to evolve database tables safely at the edge.

What is the best way to handle D1 transactions and audit trails in Workers?

Handle D1 transactions by executing safe transactional patterns that automatically generate structured activity logs, ensuring database integrity and observability for auditability.

How do I implement pagination for Cloudflare D1 queries?

Implement D1 pagination by building complex filters and advanced querying logic using Drizzle ORM to fetch structured, paginated results across user data.

Does Drizzle ORM work with Cloudflare D1 for edge computing deployments?

Yes, Drizzle ORM works with Cloudflare D1 to provide a schema-driven approach for persisting structured data efficiently in edge computing environments.

Why do I need structured migrations for Cloudflare Workers databases?

Structured migrations are needed to safely evolve database schemas over time, ensuring type-safe models and data integrity without disrupting existing edge application logic.

Can I log database activity automatically in Cloudflare D1?

Yes, you can log D1 database activity automatically by leveraging transaction patterns that enforce structured activity logging for reliable audit trails and observability.