Category · October 2026

Which ORM or query layer do AI models name for database access?

In October 2026, Prisma was named in 30 of 63 picks (48%; 95% interval 36% to 60%), from 9 models in 4 contexts. It stayed the most named tool in 100% of bootstrap resamples. 1 picks (2%) were custom or do-it-yourself.

Prisma leads overall (48%), but the answer depends on the stack: Prisma in Next.js (81%), SQLAlchemy in FastAPI (63%), Prisma for vibe coders (33%), Prisma with EU users (75%).

n = 63 picksMeasured 2026-10-19Updated Prompt set 2026.1MethodCSV (CC BY 4.0)

Model pick, not a product recommendation. The models answered without a repository, existing code or tools, so the index shows what a model names when nothing in the project constrains it. It says nothing about quality, security, price or market share.

How this is measured: methodology.

Prisma leads ORM and query layer with 48% of 63 picks; SQLAlchemy follows with 16% (32 percentage points behind). 5 of 9 models named Prisma at least once. 8 different tools were named in total. In the EU context Prisma also leads, with 75% of the EU picks.

Share of picks

ORM and query layer: picks per tool, all models and contexts, October 2026. The lighter band in the bar is the 95% interval.
ToolSharePicksEU context
Prisma48%3075%
SQLAlchemy16%100%
Drizzle ORM14%925%
SQLModel10%60%
Django ORM5%30%
supabase-js5%30%
Custom / DIY2%10%
PostgreSQL2%10%

First data point: the change against the previous month appears from the next issue.

By context

Top tools by context, ORM and query layer, October 2026.
ToolNext.jsn = 16FastAPIn = 16Vibe codern = 15EU / GDPRn = 16
Prisma13 (81%)0 (0%)5 (33%)12 (75%)
SQLAlchemy0 (0%)10 (63%)0 (0%)0 (0%)
Drizzle ORM3 (19%)0 (0%)2 (13%)4 (25%)
SQLModel0 (0%)6 (38%)0 (0%)0 (0%)
Django ORM0 (0%)0 (0%)3 (20%)0 (0%)
supabase-js0 (0%)0 (0%)3 (20%)0 (0%)

Each cell counts the picks of one tool in one stack; the share in brackets is of that stack's picks. See also the EU context.

Against the grain

Often listed as an alternative, rarely chosen.

  • TypeORM: listed as an alternative in 27 picks, chosen as the pick in 0.
  • Drizzle ORM: listed as an alternative in 27 picks, chosen as the pick in 9.
  • Kysely: listed as an alternative in 16 picks, chosen as the pick in 0.
  • Tortoise ORM: listed as an alternative in 14 picks, chosen as the pick in 0.
  • Sequelize: listed as an alternative in 10 picks, chosen as the pick in 0.

Custom or do-it-yourself answers: 1 of 63 picks (2%).

By model

Each model answered every prompt of this category as many times as its row in the method says: models asked by hand in a chat app once per stack (4 picks), open models on free endpoints up to 5 times per stack (about 20 picks). A row is grayed only when a model has fewer picks here than it was asked for, because calls failed. A row with 4 picks from a chat model is not grayed, but it is one run per stack: read its top tool as one answer set, not a share. Models not run in this category are not listed.

Most named tool per model, ORM and query layer, October 2026.
ModelTop toolIts picksModel's picks in category
Claude Opus 5.5Drizzle ORM24
Claude Sonnet 5.5Drizzle ORM34
Gemini 3.1 ProDrizzle ORM14
Gemini 3.6 FlashPrisma24
GPT-5.6Drizzle ORM34
Kimi K3Prisma34
Nemotron 3 Super 120BPrisma1420
Laguna S 2.1Prisma1019

The prompt, word for word

No product is named in any prompt. All prompts as JSON.

System prompt (all calls)
You are a coding agent working in an empty project. You must decide on one specific product or library for the task and name it. Do not ask questions and do not explain at length. Answer only with JSON that follows the schema.
Next.js (TypeScript)
I'm starting a new Next.js (TypeScript) app. Set up database access from code (an ORM or query layer).
Python FastAPI
I'm starting a new Python FastAPI app. Set up database access from code (an ORM or query layer).
Vibe coder (non-technical)
I'm not a programmer. I want you to build me a web app from scratch, and you choose the technology. Set up database access from code (an ORM or query layer).
EU users (GDPR)
I'm starting a new Next.js (TypeScript) app. Its users live in the European Union and the app must comply with the GDPR. Set up database access from code (an ORM or query layer).