- Added: api-patterns, app-builder, architecture, bash-linux, behavioral-modes, clean-code, code-review-checklist, database-design, deployment-procedures, docker-expert, documentation-templates, game-development, geo-fundamentals, i18n-localization, lint-and-validate, mobile-design, nestjs-expert, nextjs-best-practices, nodejs-best-practices, parallel-agents, performance-profiling, plan-writing, powershell-windows, prisma-expert, python-patterns, react-patterns, red-team-tactics, seo-fundamentals, server-management, tailwind-patterns, tdd-workflow, typescript-expert, vulnerability-scanner - Updated README: skill count 179 → 223 - Added credit for vudovn/antigravity-kit (MIT License) Source: https://github.com/vudovn/antigravity-kit
31 lines
771 B
Markdown
31 lines
771 B
Markdown
# ORM Selection (2025)
|
|
|
|
> Choose ORM based on deployment and DX needs.
|
|
|
|
## Decision Tree
|
|
|
|
```
|
|
What's the context?
|
|
│
|
|
├── Edge deployment / Bundle size matters
|
|
│ └── Drizzle (smallest, SQL-like)
|
|
│
|
|
├── Best DX / Schema-first
|
|
│ └── Prisma (migrations, studio)
|
|
│
|
|
├── Maximum control
|
|
│ └── Raw SQL with query builder
|
|
│
|
|
└── Python ecosystem
|
|
└── SQLAlchemy 2.0 (async support)
|
|
```
|
|
|
|
## Comparison
|
|
|
|
| ORM | Best For | Trade-offs |
|
|
|-----|----------|------------|
|
|
| **Drizzle** | Edge, TypeScript | Newer, less examples |
|
|
| **Prisma** | DX, schema management | Heavier, not edge-ready |
|
|
| **Kysely** | Type-safe SQL builder | Manual migrations |
|
|
| **Raw SQL** | Complex queries, control | Manual type safety |
|