drizzle-orm

Build type-safe SQL queries for PostgreSQL, MySQL, and SQLite in TypeScript.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/pohlai88/afenda-vite-react --skill drizzle-orm-pohlai88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle-orm
Source: https://github.com/pohlai88/afenda-vite-react/tree/main/.agents/skills/drizzle-orm
Command: npx skills add https://github.com/pohlai88/afenda-vite-react --skill drizzle-orm-pohlai88

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Drizzle ORM reduces boilerplate and safety gaps when integrating SQL with TypeScript by providing a type-safe, zero-runtime ORM.

Core Features & Use Cases

  • Type-safe query building with full TypeScript inference
  • Raw SQL support, advanced patterns (CTEs, window functions), migrations
  • Ideal for high-performance data access layers in microservices, serverless, and edge environments.

Quick Start

Install drizzle-orm, configure drizzle, introspect your database, and start querying with a typed API.

Frequently Asked Questions about drizzle-orm

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

FAQPage Schema
How do I build type-safe SQL queries in TypeScript without adding runtime overhead?

To build type-safe SQL queries in TypeScript without runtime overhead, use a zero-runtime ORM that provides compile-time type inference, first-class raw SQL support, and prepared statements across PostgreSQL, MySQL, and SQLite.

Does this TypeScript ORM work in serverless and edge runtime environments?

Yes, this TypeScript ORM is edge-runtime friendly, making it suitable for high-performance data access layers in serverless environments and microservices that require fast and safe SQL queries.

What's the best way to reduce SQL boilerplate while maintaining advanced query patterns like CTEs in TypeScript?

To reduce SQL boilerplate while maintaining advanced patterns like CTEs and window functions, use a type-safe ORM that combines full TypeScript inference with first-class raw SQL support for complex queries.

Can I use raw SQL and prepared statements alongside typed query building in TypeScript?

Yes, you can use raw SQL and prepared statements alongside typed query building, as the ORM provides first-class raw SQL support and compile-time type inference simultaneously across PostgreSQL, MySQL, and SQLite.

How do I configure database migrations and introspect schemas for a TypeScript data access layer?

To configure database migrations and introspect schemas for a TypeScript data access layer, install the ORM, configure the connection, introspect your database, and start querying with the typed API and migration compatibility.