drizzle-orm

Provide type-safe SQL-first ORM access for TypeScript applications.

1|Updated Nov 27, 2022
One-click install
npx skills add https://github.com/gonzalopozo/gonzalopozo.github.io --skill drizzle-orm-gonzalopozo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: drizzle-orm
Source: https://github.com/gonzalopozo/gonzalopozo.github.io/tree/main/.agents/skills/drizzle-orm
Command: npx skills add https://github.com/gonzalopozo/gonzalopozo.github.io --skill drizzle-orm-gonzalopozo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Type-safe, SQL-first ORM access for TypeScript applications, enabling compile-time guarantees and minimal runtime overhead.

Core Features & Use Cases

  • Type-safe schema inference and compile-time type safety for queries
  • First-class raw SQL support and expressive query patterns
  • Lightweight runtime with strong edge runtime compatibility and migrations via drizzle-kit

Quick Start

Install drizzle-orm and drizzle-kit, define a schema in TypeScript, and start querying with drizzle-orm.

Frequently Asked Questions about drizzle-orm

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

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

You achieve type-safe SQL queries in TypeScript by using a SQL-first ORM that provides compile-time type inference and zero-runtime dependencies, ensuring ergonomic and performant database access without overhead.

What is the best way to run TypeScript ORM migrations in an edge runtime environment?▼

Running TypeScript ORM migrations in an edge runtime environment is best handled by combining a lightweight ORM with drizzle-kit, which manages schema migrations while maintaining strong edge runtime compatibility and a minimal footprint.

Does this TypeScript ORM support first-class raw SQL when standard query patterns are not enough?▼

Yes, this TypeScript ORM supports first-class raw SQL alongside standard query patterns, allowing developers to drop into raw SQL expressions while retaining compile-time type safety and schema inference.

How do I define a TypeScript schema and start querying with a zero-runtime ORM?▼

To start querying with a zero-runtime ORM, you define your database schema in TypeScript and use the inferred types directly in your queries, gaining compile-time guarantees without adding runtime dependencies to your bundle.

Why choose a SQL-first ORM over other TypeScript ORMs for server and edge environments?▼

A SQL-first ORM is chosen over other TypeScript ORMs for server and edge environments because it delivers strong type inference, first-class raw SQL support, and relations management with a lightweight runtime footprint tailored for edge compatibility.