drizzle-orm

Build type-safe SQL data-access layers with compile-time query inference.

Updated Jul 12, 2025
One-click install
npx skills add https://github.com/contatomaycon/underchat --skill drizzle-orm-contatomaycon
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: drizzle-orm
Source: https://github.com/contatomaycon/underchat/tree/main/.agents/skills/drizzle-orm
Command: npx skills add https://github.com/contatomaycon/underchat --skill drizzle-orm-contatomaycon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drizzle ORM provides a TypeScript-first, type-safe SQL ORM with zero runtime overhead, enabling compile-time guarantees and predictable queries without heavy runtime bloat.

Core Features & Use Cases

  • Type-safe SQL with compile-time inference and zero runtime dependencies.
  • Rich schema definitions, relations, joins, migrations, and raw SQL support for advanced databases.
  • Ideal for edge/serverless environments and performance-critical data access layers.

Quick Start

Install drizzle-orm and drizzle-kit, then follow the quick start to connect and run your first query.

Frequently Asked Questions about drizzle-orm

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

FAQPage Schema
How do I build a type-safe data access layer in TypeScript without runtime overhead?▼

A type-safe TypeScript SQL ORM provides compile-time inference and zero runtime dependencies, enabling predictable queries without heavy runtime bloat for performance-critical data access layers.

What is the best way to manage SQL migrations and raw queries in an edge serverless environment?▼

Using a TypeScript-first SQL ORM supports rich schema definitions, relations, joins, migrations, and raw SQL when needed. It is ideal for edge/serverless environments requiring safe queries without runtime bloat.

Do I need a specific database driver to run type-safe SQL queries in Node.js?▼

Yes, building a type-safe data access layer requires a TypeScript compiler, a database driver like pg, mysql2, or better-sqlite3, and ORM tooling to generate schemas and run migrations.

Can I use compile-time type inference for SQL joins and relations without adding runtime bloat?▼

Yes, a TypeScript-first ORM provides compile-time type inference for rich schema definitions, relations, and joins with zero runtime dependencies, ensuring predictable queries without runtime bloat.

How do I set up a TypeScript SQL ORM to generate schemas and run my first query?▼

Install the ORM and its accompanying kit tooling, then follow the quick start guide to connect your database driver and execute your first type-safe query.

Why should I choose a zero-runtime-overhead ORM for edge computing instead of other TypeScript SQL tools?▼

A zero-runtime-overhead ORM delivers compile-time guarantees and predictable queries without heavy runtime bloat, making it superior for performance-critical edge and serverless environments compared to heavier alternatives.