drizzle-orm

Create type-safe SQL queries and migrations for PostgreSQL, MySQL, and SQLite.

7|1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/1lastphoenix/ton-ai-audit --skill drizzle-orm-1lastphoenix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle-orm
Source: https://github.com/1lastphoenix/ton-ai-audit/tree/main/.agents/skills/drizzle-orm
Command: npx skills add https://github.com/1lastphoenix/ton-ai-audit --skill drizzle-orm-1lastphoenix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Drizzle ORM provides a type-safe, SQL-first ORM for TypeScript with zero runtime overhead, reducing the complexity and risk of SQL integration in modern apps.

Core Features & Use Cases

  • Type-safe table schemas and queries with compile-time checks in TypeScript.
  • Zero runtime overhead and edge-runtime friendly design for serverless deployments.
  • Migrations support with Drizzle Kit, relational queries, and support for raw SQL templates.

Quick Start

Install drizzle-orm and drizzle-kit, configure your database, and start writing type-safe queries in your TypeScript project.

Frequently Asked Questions about drizzle-orm

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

FAQPage Schema
How do I use a type-safe TypeScript ORM for edge runtimes?

Use a SQL-first TypeScript ORM with zero runtime overhead to define type-safe schemas and queries. This approach targets edge runtimes and serverless deployments, providing compile-time checks without adding runtime weight.

What's the best way to run SQL migrations in a serverless TypeScript app?

Use Drizzle Kit to generate and run SQL migrations for your TypeScript app. It supports schema definitions and migrations across PostgreSQL, MySQL, and SQLite, ensuring type safety in serverless environments.

Does this TypeScript ORM support raw SQL queries?

Yes, the TypeScript ORM supports raw SQL through first-class SQL templates. This allows you to write precise queries while maintaining type inference and zero runtime overhead.

Can I use a type-safe ORM with both PostgreSQL and SQLite?

Yes, this type-safe ORM supports PostgreSQL, MySQL, and SQLite. It provides consistent schema definitions, relational queries, and type inference across all three database systems.

Why choose a zero runtime ORM over other TypeScript ORMs?

A zero runtime ORM eliminates runtime overhead, making it ideal for edge runtimes and serverless deployments. It provides SQL-first type safety and compile-time checks without the performance cost of traditional ORMs.

How do I define relational queries in a TypeScript ORM?

Define relational queries using type-safe table schemas in TypeScript. The ORM supports relations, allowing you to query related data with compile-time type inference and zero runtime overhead.