Drizzle ORM — schema definitions, queries, relations, drizzle-kit, edge support.
Scanned 9/12/2026
Install to Claude Code
npx -y skills add skeletorflet/opencode-supreme-setup --skill drizzle --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Drizzle?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/skeletorflet-drizzle)More formats (shields.io, HTML) on the badges page.
---
name: drizzle
description: Drizzle ORM — schema definitions, queries, relations, drizzle-kit, edge support.
---
## drizzle
### Schema Definition
- Define schemas in TS/JS: `export const users = pgTable('users', { id: serial('id').primaryKey(), name: text('name') })`.
- Column types: `serial`, `text`, `varchar`, `integer`, `timestamp`, `boolean`, `jsonb`.
- Constraints: `.notNull()`, `.default(...)`, `.unique()`, `.references(() => posts.id)`.
### Queries
- `db.select().from(users)` — SQL-like API with full type safety.
- `db.insert(users).values({ name: 'Alice' }).returning()`.
- `db.update(users).set({ name: 'Bob' }).where(eq(users.id, 1))`.
- `db.delete(users).where(eq(users.id, 1))`.
- Filtering: `eq`, `ne`, `gt`, `lt`, `like`, `inArray`, `and`, `or`.
- Relations: `relations(users, ({ many }) => ({ posts: many(posts) }))`.
### Migrations
- `drizzle-kit generate:pg` — generate SQL from schema; `drizzle-kit push:pg` — push to DB.
- `drizzle-kit migrate` — apply; `drizzle-kit studio` — GUI.
- `drizzle-kit introspect:pg` — pull schema from existing DB.
### Edge / Neon Support
- Works with `@neondatabase/serverless`, `@vercel/postgres`, `@planetscale/database`.
- `drizzle-orm/neon` — HTTP and WebSocket drivers.
- No heavy client — minimal bundle for edge functions.
### Drizzle Studio
- `npx drizzle-kit studio` — real-time schema inspector and data editor.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
MySQL development best practices for schema design, query optimization, and database administration
ClickHouse数据库模式、查询优化、分析和数据工程最佳实践,适用于高性能分析工作负载。
基于Supabase最佳实践的PostgreSQL数据库模式,用于查询优化、架构设计、索引和安全。
Spring Boot中的JPA/Hibernate实体设计、关系、查询优化、事务、审计、索引、分页和连接池模式。
Unify 6+ memory systems into AgentDB with HNSW indexing for 150x-12,500x search improvements. Implements ADR-006 (Unified Memory Service) and ADR-009 (Hybrid Memory Backend).