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.

n = 63 picksMeasured 2026-10-19Prompt set 2026.1Method

Model pick, not a product recommendation. It shows what language models name when asked without any constraints. It is not a statement about quality, security, price or market share.

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

Same task, four openings. Counts are picks of the tool in that context out of all picks in the 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%)

The most named tool by context: Next.js: Prisma; FastAPI: SQLAlchemy; Vibe coder: Prisma; EU / GDPR: Prisma. See also the EU and GDPR context.

Against the grain

Tools that models often list as an alternative but rarely choose. Counts of runs, nothing more.

  • TypeORM: listed as an alternative in 27 runs, picked in 0.
  • Drizzle ORM: listed as an alternative in 27 runs, picked in 9.
  • Kysely: listed as an alternative in 16 runs, picked in 0.
  • Tortoise ORM: listed as an alternative in 14 runs, picked in 0.
  • Sequelize: listed as an alternative in 10 runs, picked in 0.

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

By model

Each model has only a few picks here (see the last column), so read this as indicative. Greyed rows have fewer than 12 picks.

Most named tool per model, ORM and query layer, October 2026.
ModelMost namedPicksof
Gemma 4 31B-00
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

Each model gets the same system prompt and one of four user prompts (runs per model: see the method). No product is named. 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).