{"schemaVersion":"1.0","record":{"label":"Prisma ORM","description":"Open-source TypeScript data layer with typed queries and migrations; version 8 release-candidate workflows differ substantially from version 7.","aliases":["Prisma"],"kind":"software","website":"https://www.prisma.io/orm","overview":"Prisma ORM is an open-source TypeScript data layer for database queries and schema evolution. Its current version 8 documentation describes a contract-based client and separate database libraries, while version 7 remains supported with different schema, command and client interfaces. For AI-assisted application development, identifying the installed major version is essential: examples for these generations are not interchangeable.","license":"Apache-2.0 ORM source; hosted services have separate terms","lifecycle":"active","example":false,"features":[{"name":"Contract-based typed access","status":"supported","detail":"Version 8 uses an emitted contract and per-database runtime rather than the v7 generated-client workflow.","useCase":"Typed application data access and database schema evolution","platforms":["Node.js and TypeScript; requirements depend on major version and setup"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.prisma.io/docs/orm","locator":"Contracts, typed queries, contract emit and migration commands","retrievedAt":"2026-10-07T22:58:10Z","kind":"vendor"}]},{"name":"Database coverage in version 8","status":"limited","detail":"PostgreSQL is RC, MongoDB early access and SQLite experimental; several SQL dialects remain v7-only at inspection.","useCase":"Typed application data access and database schema evolution","platforms":["Node.js and TypeScript; requirements depend on major version and setup"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.prisma.io/docs/orm/supported-databases","locator":"Database status, transactions and standard connection strings","retrievedAt":"2026-10-07T22:58:10Z","kind":"vendor"}]},{"name":"Version 7 command compatibility","status":"unsupported","detail":"The v8 CLI does not provide the v7 generate, migrate dev and db push commands. This command-compatibility limit does not mean every v7 schema is unreadable: the article describes the separately configured PostgreSQL schema bridge.","useCase":"Typed application data access and database schema evolution","platforms":["Node.js and TypeScript; requirements depend on major version and setup"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.prisma.io/docs/orm/release-status","locator":"v8 RC; v7 pinning/support; unavailable features","retrievedAt":"2026-10-07T22:58:10Z","kind":"vendor"}]},{"name":"Incremental PostgreSQL upgrade","status":"supported","detail":"The official v7-to-v8 guide separates client migration from ownership of schema migrations, running both against one database.","useCase":"Typed application data access and database schema evolution","platforms":["Node.js and TypeScript; requirements depend on major version and setup"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.prisma.io/docs/guides/upgrade-prisma-orm/postgresql","locator":"Prerequisites and five-phase migration ownership timeline","retrievedAt":"2026-10-07T22:58:23Z","kind":"vendor"}]},{"name":"Version 8 feature parity","status":"limited","detail":"Documented gaps include most nested writes, transaction isolation options, atomic increment and legacy extension/error interfaces.","useCase":"Typed application data access and database schema evolution","platforms":["Node.js and TypeScript; requirements depend on major version and setup"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.prisma.io/docs/orm/release-status","locator":"v8 RC; v7 pinning/support; unavailable features","retrievedAt":"2026-10-07T22:58:10Z","kind":"vendor"}]}],"alternatives":[],"slug":"prisma-orm","draftAlternatives":[{"targetSlug":"drizzle-orm","status":"limited","detail":"Can substitute for Drizzle's typed database access in an application rewritten around Prisma's models and client. Choose the Prisma major version and database first; v8's RC gaps prevent a blanket replacement of existing SQL workflows.","useCase":"Typed application data access and database schema evolution","platforms":["Node.js and TypeScript; requirements depend on major version and setup"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://www.prisma.io/docs/orm","locator":"Contracts, typed queries, contract emit and migration commands","retrievedAt":"2026-10-07T22:58:10Z","kind":"vendor"},{"url":"https://www.prisma.io/docs/orm/supported-databases","locator":"Database status, transactions and standard connection strings","retrievedAt":"2026-10-07T22:58:10Z","kind":"vendor"},{"url":"https://github.com/drizzle-team/drizzle-orm/blob/main/README.md","locator":"SQL-like/relational APIs and TypeScript declarations","retrievedAt":"2026-10-07T22:58:16Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/prisma/orm/blob/main/LICENSE","locator":"Apache-2.0 source license","retrievedAt":"2026-10-07T22:57:40Z","kind":"vendor"},{"url":"https://github.com/prisma/orm/blob/v7/LICENSE","locator":"Apache-2.0 declaration","retrievedAt":"2026-10-07T22:58:16Z","kind":"vendor"},{"url":"https://www.prisma.io/docs/orm","locator":"Contracts, typed queries, contract emit and migration commands","retrievedAt":"2026-10-07T22:58:10Z","kind":"vendor"},{"url":"https://www.prisma.io/docs/orm/release-status","locator":"v8 RC; v7 pinning/support; unavailable features","retrievedAt":"2026-10-07T22:58:10Z","kind":"vendor"},{"url":"https://www.prisma.io/docs/orm/supported-databases","locator":"Database status, transactions and standard connection strings","retrievedAt":"2026-10-07T22:58:10Z","kind":"vendor"},{"url":"https://www.prisma.io/docs/guides/upgrade-prisma-orm/postgresql","locator":"Prerequisites and five-phase migration ownership timeline","retrievedAt":"2026-10-07T22:58:23Z","kind":"vendor"},{"url":"https://github.com/prisma/orm/blob/main/README.md","locator":"Prerequisites, version-matched agent skills and source layout","retrievedAt":"2026-10-07T22:58:00Z","kind":"vendor"},{"url":"https://github.com/drizzle-team/drizzle-orm/blob/main/README.md","locator":"SQL-like/relational APIs and TypeScript declarations","retrievedAt":"2026-10-07T22:58:16Z","kind":"vendor"},{"url":"https://www.prisma.io/docs/cli/configuration#use-a-prisma-orm-7-schema","locator":"PostgreSQL prisma7Schema bridge; date/time string mapping; unsupported schema constructs; v7 retains migration ownership","retrievedAt":"2026-10-14T05:51:00Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/prisma/orm/blob/main/LICENSE","locator":"Apache-2.0 source license","retrievedAt":"2026-10-07T22:57:40Z","id":"license","title":"Prisma ORM license","kind":"vendor"},{"url":"https://github.com/prisma/orm/blob/v7/LICENSE","locator":"Apache-2.0 declaration","retrievedAt":"2026-10-07T22:58:16Z","id":"license7","title":"Prisma ORM v7 license","kind":"vendor"},{"url":"https://www.prisma.io/docs/orm","locator":"Contracts, typed queries, contract emit and migration commands","retrievedAt":"2026-10-07T22:58:10Z","id":"overview","title":"Prisma ORM overview","kind":"vendor"},{"url":"https://www.prisma.io/docs/orm/release-status","locator":"v8 RC; v7 pinning/support; unavailable features","retrievedAt":"2026-10-14T05:51:00Z","id":"status","title":"Prisma release status","kind":"vendor"},{"url":"https://www.prisma.io/docs/orm/supported-databases","locator":"Database status, transactions and standard connection strings","retrievedAt":"2026-10-07T22:58:10Z","id":"databases","title":"Prisma supported databases","kind":"vendor"},{"url":"https://www.prisma.io/docs/guides/upgrade-prisma-orm/postgresql","locator":"PostgreSQL staged migration, prisma7Schema bridge and migration ownership timeline; current Node.js/TypeScript prerequisites","retrievedAt":"2026-10-14T05:51:00Z","id":"upgrade","title":"Prisma 7 to 8 PostgreSQL migration","kind":"vendor"},{"url":"https://github.com/prisma/orm/blob/main/README.md","locator":"Prerequisites, version-matched agent skills and source layout","retrievedAt":"2026-10-14T05:51:00Z","id":"readme","title":"Prisma ORM repository overview","kind":"vendor"},{"url":"https://github.com/drizzle-team/drizzle-orm/blob/main/README.md","locator":"SQL-like/relational APIs and TypeScript declarations","retrievedAt":"2026-10-07T22:58:16Z","id":"drizzle","title":"Drizzle ORM overview","kind":"vendor"},{"url":"https://www.prisma.io/docs/cli/configuration#use-a-prisma-orm-7-schema","locator":"PostgreSQL prisma7Schema bridge; date/time string mapping; unsupported schema constructs; v7 retains migration ownership","retrievedAt":"2026-10-14T05:51:00Z","id":"schema-bridge","title":"Prisma CLI configuration: use a Prisma ORM 7 schema","kind":"vendor"}],"overviewCitations":["overview","status"],"licenseCitations":["license","license7"],"sections":[{"id":"contracts","heading":"Contract and query workflow","paragraphs":[{"id":"contracts-detail","content":[{"text":"Version 8 describes models in a contract and emits the artifacts used by its typed queries. Applications import their configured database object rather than assuming the v7 @prisma/client pattern. Schema evolution has distinct planning and application steps. For an AI-generated project, this means the model file, generated artifacts, query examples and CLI commands need to come from the same generation of documentation."}],"citations":["overview"]}]},{"id":"release-boundary","heading":"Release status and existing applications","paragraphs":[{"id":"release-boundary-detail","content":[{"text":"As inspected on 14 October 2026, Prisma ORM 8 is a release candidate, and the documentation says an unqualified prisma installation selects it. Version 7 applications should deliberately pin their v7 packages and one-off CLI usage if they are staying on that generation. The v8 CLI does not preserve the familiar v7 generate, migrate dev and db push commands. Although the release-status page says it does not read schema.prisma, the PostgreSQL upgrade and configuration guides document a bridge: prisma7Schema(...) lets v8 read a v7 schema as its contract. This requires v8 configuration, has unsupported-schema cases, and returns date/time fields as strings rather than v7 Date objects. Version 7 receives bug and security fixes for eighteen months after v8 general availability; that support window is not evidence that v8 is already final."}],"citations":["status","upgrade","schema-bridge"]}]},{"id":"coverage","heading":"Database-specific capabilities","paragraphs":[{"id":"coverage-detail","content":[{"text":"The current database matrix labels PostgreSQL release-candidate quality, MongoDB early access and SQLite experimental. MySQL, MariaDB, SQL Server and CockroachDB are not yet v8 options in that matrix. MongoDB also lacks the ORM transaction interface present for PostgreSQL, requiring separate driver-level handling for that workflow. Standard connection strings allow supported databases on other hosts; choosing the open-source ORM does not itself require buying Prisma's hosted database."}],"citations":["databases"]}]},{"id":"upgrade-path","heading":"Migrating a PostgreSQL application","paragraphs":[{"id":"upgrade-path-detail","content":[{"text":"The official upgrade guide runs v7 and v8 against the same PostgreSQL database and moves application routes incrementally. Crucially, v7 retains ownership of schema migrations during the early phases; v8 takes that responsibility only after its baseline and database state are prepared. Removing the older client is a later step. This documented coexistence offers a staged migration path, not proof that every custom extension or query can be translated without changes."}],"citations":["upgrade"]}]},{"id":"gaps","heading":"Feature gaps and runtime guidance","paragraphs":[{"id":"gaps-detail","content":[{"text":"The release-status page lists missing v8 behavior including most nested writes, atomic increment, transaction-isolation selection, legacy error codes and the old $extends interface. Runtime guidance is also not perfectly aligned: the repository README asks for Node.js 24 or newer, while the migration guide permits Node.js 22.18+ on the 22 line, 24.11+ on the 24 line, or 26+ and requires TypeScript 5.9 with strict checking. A project should follow its package and migration requirements rather than assume an old starter's runtime remains suitable."}],"citations":["status","readme","upgrade"]}]},{"id":"agent-docs","heading":"Resources for AI-assisted development","paragraphs":[{"id":"agent-docs-detail","content":[{"text":"The repository describes version-matched workflow skills shipped with Prisma packages and setup flows that place them in editor-agent directories. These can supply relevant API context to an assistant, but the article does not treat that integration as a correctness guarantee or as permission to run schema-changing commands. The ordinary contract, query and migration documentation remains necessary for reviewing the resulting application."}],"citations":["readme","overview"]}]},{"id":"license","heading":"Licensing and scope","paragraphs":[{"id":"license-detail","content":[{"text":"Both the inspected mainline and v7 source licenses identify Apache-2.0. That establishes the ORM source's open-source terms; it does not make separately hosted services or every third-party extension part of the same license grant. Infrastructure selection and operational support should be evaluated separately from the library."}],"citations":["license","license7","databases"]}]},{"id":"substitution","heading":"Substitution considerations","paragraphs":[{"id":"substitution-detail","content":[{"text":"Prisma can replace "},{"text":"Drizzle ORM","targetSlug":"drizzle-orm"},{"text":" for typed data access where the chosen Prisma version covers the database and query requirements. Its declarative contract and client change the programming model, so Drizzle table declarations and queries require adaptation. The comparison is a documented capability assessment, not a performance ranking or verified drop-in migration. No installation or live database testing was performed."}],"citations":["overview","databases","drizzle"]}]}]},"id":"Q1616","revision":1729,"updatedAt":"2026-10-20T06:25:34Z","sourceUrl":"https://substitutefor.net/entities/Q1616?revision=1729"}}