$npx skillfedfor your agent

Drizzle Orm

Drizzle ORM is a lightweight TypeScript ORM that delivers compile-time type safety while mapping directly to SQL across PostgreSQL, MySQL, and SQLite. It combines a SQL-like query builder with a relational queries API, serverless compatibility, and zero dependencies for full control over your database layer.

Drizzle ORM provides type-safe SQL queries and schema management for PostgreSQL, MySQL, and SQLite.

AI-generated summary based on this skill's SKILL.md

13 5 unlicensed, metadata onlyupdated by oakoss

Decision gist · record as of 2026-03-02

Drizzle ORM provides type-safe SQL queries and schema management for PostgreSQL, MySQL, and SQLite. Drizzle ORM is a lightweight TypeScript ORM that delivers compile-time type safety while mapping directly to SQL across PostgreSQL, MySQL, and SQLite. It combines a SQL-like query builder with a relational queries API, serverless compatibility, and zero dependencies for full control over your database layer.

manual: git clone https://github.com/oakoss/agent-skills → cp -r agent-skills ~/.claude/skills/drizzle-orm

Use it when

  • Drizzle ORM delivers compile-time type safety by mapping directly to SQL.
  • Drizzle ORM allows you to define schemas using a type-safe API that directly maps to your database structure.
Same gist for agents: .md · .json

Install

oakoss/agent-skills/drizzle-orm · repository language: Python

generated, unverified - the skill's exact subdirectory could not be determined; check the repository on GitHub

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How to use Drizzle ORM for database operations?

Drizzle ORM provides a lightweight TypeScript solution for database operations with compile-time type safety. Start by installing Drizzle and configuring your database connection for PostgreSQL, MySQL, or SQLite. Define your schema using Drizzle's type-safe schema builder, then use either the SQL-like query builder or relational queries API to perform operations. Drizzle's zero-dependency design gives you full control over your database layer while maintaining type safety throughout your application.

What makes Drizzle ORM type-safe for building queries?

Drizzle ORM delivers compile-time type safety by mapping directly to SQL, ensuring your queries are validated at build time rather than runtime. The TypeScript integration means column types, relations, and query results are all type-checked automatically. This prevents common database errors before deployment and provides excellent IDE autocomplete support, making it easier to write correct queries from the start.

How do schema definition and migration work in Drizzle ORM?

Drizzle ORM allows you to define schemas using a type-safe API that directly maps to your database structure. Once your schema is defined, Drizzle handles migrations by tracking changes and generating the necessary SQL. The migration system works across PostgreSQL, MySQL, and SQLite, giving you a consistent approach to managing database evolution while maintaining type safety throughout the process.

How does Drizzle ORM compare to other ORMs like Prisma?

Drizzle ORM stands out with its lightweight, zero-dependency architecture and compile-time type safety that maps directly to SQL. Unlike heavier ORMs, Drizzle gives developers full control over the database layer while maintaining TypeScript type checking. It excels in serverless environments and edge runtimes, making it ideal for modern deployment scenarios where performance and bundle size matter.

Can Drizzle ORM be integrated into existing TypeScript projects?

Yes, Drizzle ORM integrates smoothly into existing TypeScript projects. Its lightweight design and zero-dependency approach mean minimal friction during adoption. You can gradually migrate your database layer to Drizzle while keeping the rest of your application intact, making it suitable for both greenfield projects and legacy system modernization.

What databases does Drizzle ORM support?

Drizzle ORM supports PostgreSQL, MySQL, and SQLite, providing consistent type-safe query building across all three. This multi-database support means you can use the same Drizzle API regardless of which database you choose, making it flexible for different project requirements and deployment scenarios.

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Learn how to set up and use Drizzle ORM for database operations”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

drizzle-best-practices
by honra-io · honra-io/drizzle-best-practices

Comprehensive reference for building PostgreSQL applications with Drizzle ORM, covering schema design, query patterns, and relational modeling across eight prioritized categories. Includes version-specific guidance for both v1 RC and legacy 0.45.x APIs, with correct and incorrect code examples for each pattern.

MITupdated May 2026
★ 18repo stars
drizzle
by bobmatnyc · bobmatnyc/claude-mpm-skills

Drizzle is a TypeScript-first ORM built for compile-time type safety and edge-runtime performance. Define schemas with SQL-like syntax, execute queries with full type inference, and manage one-to-many and many-to-many relations without runtime dependencies.

MITupdated Jul 2026
★ 62repo stars
postgres-drizzle
by ccheney · ccheney/robust-skills

Build type-safe database applications pairing PostgreSQL with Drizzle ORM. This skill covers schema design, relational queries, migrations via drizzle-kit, connection pooling, and common performance pitfalls like N+1 queries and missing indexes. Includes decision trees for modeling relationships and diagnosing slow queries.

MITupdated Jul 2026
★ 55repo stars
drizzle-orm-patterns
by giuseppe-trisciuoglio · giuseppe-trisciuoglio/developer-kit

Master Drizzle ORM development with patterns for schema definition, relations, and type-safe queries across five database dialects. Learn CRUD operations, transactions, migrations, and best practices for building robust database applications.

MITupdated Jun 2026
★ 311repo stars
Turso
by oakoss · oakoss/agent-skills

Turso is a globally distributed SQLite platform built on libSQL that combines edge-hosted databases with embedded replicas for low-latency local reads. It supports vector similarity search, multi-database per-tenant architectures, batch operations, and integrates with Drizzle ORM for schema management. Use it for applications requiring offline-capable replicas, programmatic database provisioning, or distributed deployments.

no license declared → metadata onlyupdated Mar 2026
★ 13repo stars
drizzle-orm
by Mindrally · Mindrally/skills

Drizzle ORM is a lightweight, type-safe TypeScript ORM that treats SQL as a first-class citizen. This skill covers schema definition, database connections across PostgreSQL, SQLite, and Turso, relational queries, and performance patterns like proper indexing and pagination.

Apache-2.0updated Jun 2026
★ 202repo stars

More skills Pglite (unlicensed) · drizzle-orm-d1 (MIT) · Electricsql (unlicensed) · drizzle-sqlite-scaffold (MIT) · Drizzle Postgres (unlicensed) · database-design (MIT)

Tags
type-safe-queriesdatabase-abstractionsql-generationschema-managementorm-frameworktypescript-firstquery-buildingdata-mapping