Prisma
A popular TypeScript ORM that generates a typed database client from a schema file.
In more detail
You describe tables in a schema file and Prisma generates a typed client with methods such as prisma.user.findMany(). It also manages database migrations.
Example
Prisma queries are not fetch calls, so wrap them in React cache for per-request deduplication in Next.js.Related terms
- ORM — A library that lets code read and write database rows as ordinary objects, generating the SQL for you.
- React cache — A React function that wraps another function so repeated calls with the same arguments during one server request reuse the first result.
Taught in
- Request Memoization: Automatic Deduplication Tiers — Next.js 15 & Modern App Router Architecture