drizzle-orm

Provide type-safe SQL ORM queries for TypeScript applications.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/ShaulLavo/ellie --skill drizzle-orm-shaullavo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle-orm
Source: https://github.com/ShaulLavo/ellie/tree/main/.agents/skills/drizzle-orm
Command: npx skills add https://github.com/ShaulLavo/ellie --skill drizzle-orm-shaullavo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies database interactions in TypeScript applications by providing compile-time type safety and a developer-friendly query builder, eliminating runtime errors and boilerplate code.

Core Features & Use Cases

  • Type-Safe Queries: Ensures your SQL queries match your database schema at compile time.
  • Schema Migrations: Manages database schema evolution with a dedicated migration tool.
  • Relations: Defines and queries relationships between tables (one-to-one, one-to-many, many-to-many).
  • Use Case: When building a new feature that requires creating, reading, updating, or deleting user data, use this Skill to define your users table schema and interact with it safely and efficiently.

Quick Start

Use the drizzle-orm skill to insert a new user with the email '[email protected]' and name 'Test User' into the 'users' table.

Frequently Asked Questions about drizzle-orm

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

FAQPage Schema
How do I get compile-time type safety for SQL queries in a TypeScript ORM?

Type-safe ORMs validate SQL queries against your defined schema at compile time. This eliminates runtime errors and boilerplate code by catching mismatches during the TypeScript build process.

Can I use this TypeScript SQL ORM with PostgreSQL, MySQL, and SQLite?

Yes, this ORM integrates with PostgreSQL, MySQL, and SQLite. It provides a unified query builder and schema definition interface to interact safely across these various SQL databases.

How do I manage database schema migrations in a TypeScript application?

You manage schema migrations using a dedicated migration tool included with the ORM. It facilitates database schema evolution by generating and applying SQL migration files based on your TypeScript schema definitions.

How do I query one-to-many and many-to-many relations in a type-safe SQL ORM?

You query relations by defining one-to-one, one-to-many, or many-to-many relationships within your schema. The ORM then allows you to fetch related data safely while maintaining TypeScript type inference.

Does this ORM support complex query patterns like subqueries and CTEs in TypeScript?

Yes, the ORM supports complex query patterns including subqueries and Common Table Expressions (CTEs). You can build these advanced SQL structures using a type-safe query builder in TypeScript.

What is the best way to insert a new record into a database table using a TypeScript SQL ORM?

To insert a record, use the ORM query builder to specify the target table and provide the data object. The ORM generates the SQL insert statement while validating the data types against your schema at compile time.