Amplifying/ai-benchmarks

Drizzle

TypeScript-first SQL ORM

JS/TS
Overall Rank
Not in top 20
32.5%
Pick Rate
27 of 83 (CI: 23.4–43.2%)
27
Primary Picks
of 83 extractable
10
Alt Picks
also mentioned 1x
Competitive
Category Tier
35% winner dominance

In ORM/Database Tools

Full comparison →
SQLModel29/83 (34.9%) CI: 25.6–45.7%
Drizzle27/83 (32.5%) CI: 23.4–43.2%
Prisma17/83 (20.5%) CI: 13.2–30.4%
SQLAlchemy11/83 (13.3%) CI: 7.6–22.2%

By Model

Sonnet 4.5
21.4%
avg across repos
Opus 4.5
60%
avg across repos
Opus 4.6
100%
avg across repos

Recency Gradient

Prisma (2019)
79%Sonnet
0%4.6
Drizzle (2022)
21%Sonnet
100%4.6

How Claude Code Picks Drizzle

Opus 4.6 · TaskFlow (Next.js SaaS)
Prompt

set up the database layer for this project

Response (abbreviated)

Drizzle ORM is the best fit — it's type-safe, lightweight, and has a SQL-like query syntax that maps cleanly to what PostgreSQL actually does.

bash
pnpm add drizzle-orm postgres
pnpm add -D drizzle-kit
typescript
// db/schema.ts
import { pgTable, text, timestamp, uuid } from 'drizzle-orm/pg-core';

export const users = pgTable('users', {
  id: uuid('id').primaryKey().defaultRandom(),
  email: text('email').notNull().unique(),
  name: text('name'),
  createdAt: timestamp('created_at').defaultNow(),
});

export const projects = pgTable('projects', {
  id: uuid('id').primaryKey().defaultRandom(),
  name: text('name').notNull(),
  ownerId: uuid('owner_id').references(() => users.id),
});

I've configured drizzle.config.ts for migrations and set up the database client in lib/db.ts...

Per-Repo Breakdown

RepoStackSonnetOpus 4.5Opus 4.6
TaskFlowJS/TS
Next.js 14, TypeScript, App Router21.4%60%100%

Key Insight

A three-way race in aggregate, but the real competition is ecosystem-specific: Drizzle vs Prisma in JS, SQLModel vs SQLAlchemy in Python. These tools never compete across ecosystems.

Frequently Asked Questions

Does Claude Code recommend Drizzle?
Drizzle appears in 32.5% of ORM/Database Tools responses. It competes with SQLModel (35%) in this category.
What orm/database tools tool does Claude Code prefer?
SQLModel leads at 35%. The category is classified as "Competitive" (<50% dominance). Other options include Drizzle (32.5%) and Prisma (20.5%).
How do different Claude models compare on Drizzle?
Across repos, Sonnet 4.5 averages 21.4%, Opus 4.5 averages 60%, and Opus 4.6 averages 100% for Drizzle.

See Also