drizzle-orm-d1

Community

Type-safe D1 databases with Drizzle ORM.

AuthorHuynhSang2005
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines the process of interacting with Cloudflare D1 databases by providing a type-safe interface through Drizzle ORM, preventing common errors and simplifying schema management and data querying.

Core Features & Use Cases

  • Type-Safe Schema Definition: Define your D1 database schema in TypeScript using Drizzle ORM.
  • Automated Migrations: Generate and apply SQL migrations using Drizzle Kit.
  • D1 Batch API: Safely handle transactions and multiple operations using D1's batch API, avoiding SQL BEGIN/COMMIT errors.
  • Error Prevention: Proactively prevents 18 common issues, including D1 transaction failures, foreign key problems, and parameter limits.
  • Use Case: When building a new Cloudflare Worker that requires a persistent database, use this Skill to define your schema, set up migrations, and perform all CRUD operations safely and efficiently.

Quick Start

Use the drizzle-orm-d1 skill to generate a migration file for the schema defined in src/db/schema.ts.

Dependency Matrix

Required Modules

None required

Components

scriptsreferencesassets

💻 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: drizzle-orm-d1
Download link: https://github.com/HuynhSang2005/blog-personal-nextjs/archive/main.zip#drizzle-orm-d1

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.