drizzle

Provide documentation and research for Drizzle ORM database operations.

2|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/miketromba/skills --skill drizzle-miketromba
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle
Source: https://github.com/miketromba/skills/tree/main/skills/drizzle
Command: npx skills add https://github.com/miketromba/skills --skill drizzle-miketromba

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive documentation and guidance for Drizzle ORM, a lightweight, type-safe TypeScript ORM, simplifying database interactions in modern applications.

Core Features & Use Cases

  • Schema Definition: Define your database schema using TypeScript.
  • Querying: Perform type-safe queries with an intuitive API.
  • Migrations: Manage database schema changes with Drizzle Kit.
  • Use Case: Use this Skill when you need to set up a new PostgreSQL database with Drizzle, define your user and post tables, establish a one-to-many relationship between them, and then generate the necessary migration files.

Quick Start

Research how to define a schema with one-to-many relations between users and posts tables in Drizzle ORM.

Frequently Asked Questions about drizzle

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

FAQPage Schema
How do I define a database schema with one-to-many relations in Drizzle ORM?

To define a database schema with one-to-many relations in Drizzle ORM, you use TypeScript to declare tables and configure relational mappings linking primary and foreign keys. This provides a fully type-safe schema definition directly in your codebase.

What is the best way to manage database migrations in a TypeScript application?

The best way to manage database migrations in a TypeScript application is using Drizzle Kit to generate and apply schema changes. It automates migration file creation based on your TypeScript schema definitions, ensuring database state matches your code.

Does Drizzle ORM work with MySQL and SQLite databases or only PostgreSQL?

Drizzle ORM supports PostgreSQL, MySQL, and SQLite databases, alongside various other database providers. It delivers a unified, type-safe querying API across these systems for flexible integration within modern applications.

How do I perform type-safe SQL queries and CRUD operations using Drizzle?

You perform type-safe SQL queries and CRUD operations using Drizzle by utilizing its intuitive query builder API. The ORM infers TypeScript types directly from your schema, ensuring compile-time safety for select, insert, update, and delete operations.

How does transaction management work in a type-safe TypeScript ORM?

Transaction management in a type-safe TypeScript ORM like Drizzle groups multiple database operations into a single atomic unit. You execute a callback function containing queries, ensuring all changes commit successfully or roll back entirely on failure.