What Is Prisma?
Prisma ORM
Prisma is a TypeScript-first ORM that generates a type-safe database client from your schema. It handles queries, migrations, and database introspection for PostgreSQL, MySQL, SQLite, and MongoDB with autocompletion and compile-time type checking.
How Prisma Works
Prisma's workflow: define your schema in schema.prisma, run prisma migrate to update the database, then use the auto-generated client with full TypeScript types. prisma.user.findMany({ where: { active: true } }) returns typed User objects.
Key Concepts
- Prisma Schema — Declarative schema definition that maps to your database — models, relations, and indexes
- Type-Safe Client — Auto-generated TypeScript client with autocomplete and compile-time query validation
Frequently Asked Questions
Prisma vs Drizzle ORM?
Prisma prioritizes developer experience with its schema-first approach and generated client. Drizzle is closer to SQL with better performance. Prisma for convenience; Drizzle for control.