typescript:drizzle-orm

Create type-safe Drizzle ORM schemas and queries for TypeScript projects.

39|4|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/martinffx/atelier --skill typescript-drizzle-orm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript:drizzle-orm
Source: https://github.com/martinffx/atelier/tree/main/skills/typescript%3Adrizzle-orm
Command: npx skills add https://github.com/martinffx/atelier --skill typescript-drizzle-orm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drizzle ORM provides a type-safe way to define database schemas and write SQL-like queries in TypeScript without sacrificing runtime performance or type safety.

Core Features & Use Cases

  • Type-safe schema definitions (pgTable/sqliteTable) and automatic type inference with $inferSelect and $inferInsert.
  • Support for relations, joins, transactions, and migrations across PostgreSQL, SQLite, Cloudflare D1, and Durable Objects.
  • Rich API coverage for inserts, updates, deletes, and complex queries with type-safe results.

Quick Start

Create a type-safe Drizzle ORM schema in TypeScript, define two tables, and run a basic query to fetch records.

Frequently Asked Questions about typescript:drizzle-orm

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

FAQPage Schema
How do I define a type-safe SQL schema in TypeScript using Drizzle ORM?

To define a type-safe SQL schema in TypeScript using Drizzle ORM, use pgTable or sqliteTable to structure columns and automatically infer select and insert types with $inferSelect and $inferInsert.

Can I use Drizzle ORM with Cloudflare D1 and Durable Objects?

Yes, Drizzle ORM works with Cloudflare D1 and Durable Objects, providing a type-safe data access layer for modeling schemas, relations, and running CRUD operations across these platforms.

What is the best way to handle SQL transactions and relations in TypeScript?

The best way to handle SQL transactions and relations in TypeScript is using Drizzle ORM, which supports relational queries, joins, and complex type-safe query building across PostgreSQL and SQLite databases.

How does Drizzle ORM infer TypeScript types for SQL inserts and queries?

Drizzle ORM infers TypeScript types for SQL inserts and queries by utilizing $inferInsert and $inferSelect utilities, ensuring type-safe results for inserts, updates, deletes, and complex relational queries.

Does Drizzle ORM support database migrations and type-safe CRUD operations?

Yes, Drizzle ORM supports database migrations and comprehensive type-safe CRUD operations, allowing you to execute inserts, updates, deletes, and complex queries while maintaining strict TypeScript type safety.