prisma-driver-adapter-implementation
Implement Prisma Driver Adapters Correctly
Prisma driver adapters require precise transaction, type, and error contracts. This guide provides implementation patterns and verification steps for Prisma ORM v7 adapters.
Stop for confirmation before installing.
Review the plan and obtain explicit user consent before changing files.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "prisma-driver-adapter-implementation" from https://skillstore.io/skills/prisma-prisma-driver-adapter-implementation.md and its manifest at https://skillstore.io/api/skills/prisma-prisma-driver-adapter-implementation/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "prisma-driver-adapter-implementation". Explain which interfaces a PostgreSQL Prisma v7 adapter must implement.
Expected outcome:
- Factory: connects to primary and isolated shadow databases.
- Adapter: executes queries and scripts, starts transactions, reports connection information, and disposes resources.
- Transaction: supports queries while commit and rollback only release resources.
Using "prisma-driver-adapter-implementation". Review my transaction implementation.
Expected outcome:
- Finding: commit sends SQL although Prisma already sends the transaction command.
- Fix: keep commit as a lifecycle hook that releases the reserved connection.
- Test: verify commit, rollback, nested savepoints, and isolation validation.
Using "prisma-driver-adapter-implementation". Create a verification plan for a SQLite adapter.
Expected outcome:
- Verify integer, bytes, date, JSON, and boolean conversions.
- Reject unsupported isolation levels and test script execution behavior.
- Run direct adapter tests and end-to-end PrismaClient CRUD and rollback tests.
Security Audit
High RiskAll 69 static alerts are false positives from Markdown, TypeScript examples, expected byte decoding, and a standard DATABASE_URL reference. A separate high-severity data-integrity issue exists because connectToShadowDb() can reuse the primary database URL.
Confirmed security concerns (1)
Risk Factors
⚙️ External commands (50)
🔑 Env variables (3)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/prisma-prisma-driver-adapter-implementation/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/prisma-prisma-driver-adapter-implementation?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/prisma-prisma-driver-adapter-implementation?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/prisma-prisma-driver-adapter-implementation/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/prisma-prisma-driver-adapter-implementation.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA · BibTeX · CFF)
APA citation
prisma. (2026). prisma-driver-adapter-implementation security audit report (audit version 8) [Author version 7.6.0]. Skillstore. https://skillstore.io/skills/prisma-prisma-driver-adapter-implementation/audits/8BibTeX citation
@techreport{prisma-prisma-prisma-driver-adapter-implementation-2026,
author = {prisma},
title = {prisma-driver-adapter-implementation security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/prisma-prisma-driver-adapter-implementation/audits/8},
note = {Author version 7.6.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "prisma-driver-adapter-implementation security audit report (audit version 8)"
version: "7.6.0"
type: report
authors:
- name: "prisma"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/prisma-prisma-driver-adapter-implementation/audits/8"
identifiers:
- type: other
value: "skillstore:prisma-prisma-driver-adapter-implementation:audit:8"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Build a New Adapter
Implement the required Prisma v7 contracts for a database driver and map its native types and errors.
Upgrade an Existing Adapter
Compare an older adapter with Prisma v7 transaction, factory, query, and result requirements.
Review Adapter Correctness
Check lifecycle behavior, type conversion, error mapping, disposal, and integration tests before release.
Try These Prompts
Explain the Prisma v7 SqlDriverAdapter interfaces for a developer new to adapters. Include each required method and its return type.
Review my driver API and design queryRaw and executeRaw mappings. Preserve parameter binding and map results to SqlResultSet.
Implement transaction support for [database]. Validate supported isolation levels, handle nested savepoints, release resources, and keep lifecycle hooks free of SQL.
Audit this Prisma v7 adapter against the guide. Identify contract violations in transactions, type conversion, error mapping, disposal, shadow databases, and tests.
Best Practices
- Bind query arguments through the driver instead of interpolating application values into SQL.
- Reserve a dedicated connection for transactions and release it through lifecycle hooks.
- Use an isolated shadow database and test every supported database behavior with PrismaClient.
Avoid
- Do not issue COMMIT or ROLLBACK SQL from transaction lifecycle hooks.
- Do not infer all database types from JavaScript values when driver metadata is available.
- Do not connect shadow database operations to the primary database URL.