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%).
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.
By context
| Tool | Next.jsn = 16 | FastAPIn = 16 | Vibe codern = 15 | EU / GDPRn = 16 |
|---|---|---|---|---|
| Prisma | 13 (81%) | 0 (0%) | 5 (33%) | 12 (75%) |
| SQLAlchemy | 0 (0%) | 10 (63%) | 0 (0%) | 0 (0%) |
| Drizzle ORM | 3 (19%) | 0 (0%) | 2 (13%) | 4 (25%) |
| SQLModel | 0 (0%) | 6 (38%) | 0 (0%) | 0 (0%) |
| Django ORM | 0 (0%) | 0 (0%) | 3 (20%) | 0 (0%) |
| supabase-js | 0 (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.
| Model | Top tool | Its picks | Model's picks in category |
|---|---|---|---|
| Claude Opus 5.5 | Drizzle ORM | 2 | 4 |
| Claude Sonnet 5.5 | Drizzle ORM | 3 | 4 |
| Gemini 3.1 Pro | Drizzle ORM | 1 | 4 |
| Gemini 3.6 Flash | Prisma | 2 | 4 |
| GPT-5.6 | Drizzle ORM | 3 | 4 |
| Kimi K3 | Prisma | 3 | 4 |
| Nemotron 3 Super 120B | Prisma | 14 | 20 |
| Laguna S 2.1 | Prisma | 10 | 19 |
The prompt, word for word
No product is named in any prompt. All prompts as JSON.
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.
I'm starting a new Next.js (TypeScript) app. Set up database access from code (an ORM or query layer).
I'm starting a new Python FastAPI app. Set up database access from code (an ORM or query layer).
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).
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).