[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75PRMNMWR816H36P8RXCQFA":3,"skill-same:01M75PRMNMWR816H36P8RXCQFA":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M75PRMNMWR816H36P8RXCQFA","prisma-driver-adapter-implementation",null,"Required reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter, Transaction, savepoint, result mapping, or DriverAdapterError behavior. Covers current transaction lifecycle, optional savepoint hooks, original database-error preservation, and verification.","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fprisma-driver-adapter-implementation\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: prisma-driver-adapter-implementation\ndescription: Required reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter, Transaction, savepoint, result mapping, or DriverAdapterError behavior. Covers current transaction lifecycle, optional savepoint hooks, original database-error preservation, and verification.\nlicense: MIT\nmetadata:\n  author: prisma\n  version: \"7.9.1\"\n---\n\n# Prisma SQL Driver Adapter Implementation\n\nUse this guide with the exact `@prisma\u002Fdriver-adapter-utils` version installed by the target Prisma release. Driver adapters are a protocol boundary: type-compatible code can still corrupt values, leak connections, or break transactions.\n\n## When to Apply\n\n- Implementing `SqlDriverAdapterFactory`, `SqlMigrationAwareDriverAdapterFactory`, `SqlDriverAdapter`, or `Transaction`\n- Adding nested-transaction\u002Fsavepoint support\n- Mapping driver values, column metadata, bind arguments, or database errors\n- Debugging `P2039`, transaction leaks, shadow-database failures, or adapter-specific query behavior\n\n## Contract snapshot\n\n```typescript\ninterface SqlDriverAdapterFactory extends AdapterInfo {\n  connect(): Promise\u003CSqlDriverAdapter>\n}\n\ninterface SqlMigrationAwareDriverAdapterFactory extends SqlDriverAdapterFactory {\n  connectToShadowDb(): Promise\u003CSqlDriverAdapter>\n}\n\ninterface SqlDriverAdapter extends AdapterInfo {\n  queryRaw(query: SqlQuery): Promise\u003CSqlResultSet>\n  executeRaw(query: SqlQuery): Promise\u003Cnumber>\n  executeScript(script: string): Promise\u003Cvoid>\n  startTransaction(isolationLevel?: IsolationLevel): Promise\u003CTransaction>\n  getConnectionInfo?(): ConnectionInfo\n  dispose(): Promise\u003Cvoid>\n}\n\ninterface Transaction extends AdapterInfo {\n  readonly options: { usePhantomQuery: boolean }\n  queryRaw(query: SqlQuery): Promise\u003CSqlResultSet>\n  executeRaw(query: SqlQuery): Promise\u003Cnumber>\n  commit(): Promise\u003Cvoid>\n  rollback(): Promise\u003Cvoid>\n  createSavepoint?(name: string): Promise\u003Cvoid>\n  rollbackToSavepoint?(name: string): Promise\u003Cvoid>\n  releaseSavepoint?(name: string): Promise\u003Cvoid>\n}\n```\n\n`IsolationLevel` currently includes `READ UNCOMMITTED`, `READ COMMITTED`, `REPEATABLE READ`, `SNAPSHOT`, and `SERIALIZABLE`; validate what the concrete database supports.\n\n## Priority rules\n\n| Priority | Rule | Impact |\n|----------|------|--------|\n| CRITICAL | One dedicated connection per transaction | Prevents interleaving and leaks |\n| CRITICAL | `commit`\u002F`rollback` are lifecycle cleanup hooks | Prevents duplicate COMMIT\u002FROLLBACK |\n| CRITICAL | Savepoints live on `Transaction`, not adapter-global depth | Makes nested scopes connection-local |\n| CRITICAL | Preserve original database error code\u002Fmessage | Enables useful `P2039` fallback |\n| HIGH | Map arguments and result metadata exactly | Prevents silent value corruption |\n| HIGH | Shadow databases are isolated and always cleaned up | Makes Migrate safe |\n| HIGH | Dispose only resources the adapter owns | Prevents shutting down caller-owned pools |\n\n## Query implementation\n\n`SqlQuery` contains `sql`, `args`, and parallel `argTypes`. Map each argument using both value and `ArgType`; do not discard type\u002Farity information. Execute in the driver's array\u002Ftuple row mode so column order is stable.\n\n```typescript\nclass ExampleQueryable {\n  readonly provider = 'postgres' as const\n  readonly adapterName = '@acme\u002Fadapter-example'\n\n  constructor(protected readonly connection: DriverConnection) {}\n\n  async queryRaw(query: SqlQuery): Promise\u003CSqlResultSet> {\n    try {\n      const result = await this.connection.query({\n        text: query.sql,\n        values: query.args.map((value, index) =>\n          mapArg(value, query.argTypes[index]),\n        ),\n        rowMode: 'array',\n      })\n\n      return {\n        columnNames: result.fields.map((field) => field.name),\n        columnTypes: result.fields.map(mapColumnType),\n        rows: result.rows,\n      }\n    } catch (error) {\n      throwAdapterError(error)\n    }\n  }\n\n  async executeRaw(query: SqlQuery): Promise\u003Cnumber> {\n    try {\n      const result = await this.connection.execute(\n        query.sql,\n        query.args.map((value, index) => mapArg(value, query.argTypes[index])),\n      )\n      return result.rowsAffected ?? 0\n    } catch (error) {\n      throwAdapterError(error)\n    }\n  }\n}\n```\n\n### Result mapping\n\nReturn `columnNames`, `columnTypes`, and `rows` with identical lengths\u002Forder. Map driver metadata to `ColumnTypeEnum` deliberately:\n\n- signed integer widths to `Int32`\u002F`Int64`; preserve 64-bit values without JS number truncation\n- decimal\u002Fnumeric to `Numeric` using the representation expected by Prisma\n- binary to `Uint8Array`\u002F`Bytes`\n- date-only, time-only, and timestamp to `Date`, `Time`, and `DateTime`\n- UUID, JSON, enum, arrays, and provider-specific unknown values to their explicit types\n- unsupported native types to `DriverAdapterError({ kind: 'UnsupportedNativeDataType', type })`\n\nTest `null`, empty arrays, array element types, big integers, decimals, byte arrays, JSON, dates, and user-defined\u002Funknown native types.\n\n### Script execution\n\n`executeScript` must execute a migration script as the provider expects. Prefer the driver's native multi-statement\u002Fscript facility or a real SQL parser. Naively splitting on `;` breaks functions, triggers, quoted strings, and dialect-specific blocks.\n\n## Transaction protocol\n\n`startTransaction` must acquire one dedicated connection, start the database transaction, apply the requested isolation level, and return a `Transaction` bound to that same connection. If setup fails, release it immediately.\n\n```typescript\nasync startTransaction(level?: IsolationLevel): Promise\u003CTransaction> {\n  const connection = await this.pool.acquire()\n  try {\n    const tx = new ExampleTransaction(connection, () => connection.release())\n    await tx.executeRaw({ sql: 'BEGIN', args: [], argTypes: [] })\n    if (level) {\n      await tx.executeRaw({\n        sql: `SET TRANSACTION ISOLATION LEVEL ${validateLevel(level)}`,\n        args: [],\n        argTypes: [],\n      })\n    }\n    return tx\n  } catch (error) {\n    connection.release(error)\n    throwAdapterError(error)\n  }\n}\n```\n\n### Commit and rollback\n\nPrisma coordinates the SQL `COMMIT`\u002F`ROLLBACK` through `executeRaw`. The transaction object's `commit()` and `rollback()` methods are lifecycle hooks: detach listeners and release the dedicated connection exactly once. They must not issue a second SQL commit\u002Frollback.\n\n```typescript\nclass ExampleTransaction extends ExampleQueryable implements Transaction {\n  readonly options = { usePhantomQuery: false }\n  #closed = false\n\n  constructor(connection: DriverConnection, private readonly release: () => void) {\n    super(connection)\n  }\n\n  async commit() { this.finish() }\n  async rollback() { this.finish() }\n\n  private finish() {\n    if (this.#closed) return\n    this.#closed = true\n    this.release()\n  }\n\n  async createSavepoint(name: string) {\n    await this.control(`SAVEPOINT ${safeSavepoint(name)}`)\n  }\n\n  async rollbackToSavepoint(name: string) {\n    await this.control(`ROLLBACK TO SAVEPOINT ${safeSavepoint(name)}`)\n  }\n\n  async releaseSavepoint(name: string) {\n    await this.control(`RELEASE SAVEPOINT ${safeSavepoint(name)}`)\n  }\n\n  private async control(sql: string) {\n    await this.executeRaw({ sql, args: [], argTypes: [] })\n  }\n}\n```\n\nImplement the optional savepoint methods only where the provider supports them. Validate\u002Fquote savepoint identifiers. For providers whose savepoints are intentionally no-ops, document and test that limitation.\n\nNever keep transaction depth on the shared adapter. Parallel transactions make adapter-global depth incorrect; nested state belongs to the returned transaction connection and Prisma's savepoint calls.\n\n## Error mapping\n\nWrap recognized driver failures in `DriverAdapterError`. Map known conditions to `MappedError` kinds such as constraint violations, authentication\u002Freachability, missing table\u002Fcolumn\u002Fdatabase, timeouts, closed transactions, invalid input, value range, and write conflicts.\n\nFor database errors, preserve `originalCode` and `originalMessage` even when falling back to the provider-specific raw variant:\n\n```typescript\nimport {\n  DriverAdapterError,\n  type Error as DriverAdapterErrorObject,\n  type MappedError,\n} from '@prisma\u002Fdriver-adapter-utils'\n\nfunction convertDriverError(error: DatabaseError): DriverAdapterErrorObject {\n  return {\n    originalCode: String(error.code),\n    originalMessage: error.message,\n    ...mapKnownOrRaw(error),\n  }\n}\n\nfunction mapKnownOrRaw(error: DatabaseError): MappedError {\n  if (error.code === '23505') {\n    return { kind: 'UniqueConstraintViolation', constraint: parsedConstraint(error) }\n  }\n  return {\n    kind: 'postgres',\n    code: String(error.code ?? 'N\u002FA'),\n    severity: error.severity ?? 'N\u002FA',\n    message: error.message,\n    detail: error.detail,\n    column: error.column,\n    hint: error.hint,\n  }\n}\n\nfunction throwAdapterError(error: unknown): never {\n  if (!isDatabaseError(error)) throw error\n  throw new DriverAdapterError(convertDriverError(error))\n}\n```\n\nPrisma uses preserved original details when an unmapped driver error becomes `P2039`. Do not replace every unknown exception with a fabricated `GenericJs` id; rethrow genuinely unexpected non-driver errors so programming bugs remain visible.\n\n## Factory, ownership, and shadow database\n\n- `connect()` returns a fresh usable adapter connection\u002Fpool wrapper.\n- Track whether the factory created the pool. `dispose()` closes owned pools and only detaches listeners from caller-owned pools unless an explicit option transfers ownership.\n- Implement `SqlMigrationAwareDriverAdapterFactory` only when `connectToShadowDb()` can create an isolated shadow database, connect to it, and drop it during disposal\u002Ffailure cleanup.\n- Never point the shadow adapter at the primary database. Quote generated identifiers and use cryptographically unique names.\n- `getConnectionInfo()` should accurately report `schemaName`, `maxBindValues` when applicable, and `supportsRelationJoins`.\n\n## Verification checklist\n\n- [ ] Typecheck against the exact target `@prisma\u002Fdriver-adapter-utils` version\n- [ ] `queryRaw` preserves column order, types, nulls, and precision\n- [ ] `executeRaw` reports affected rows correctly\n- [ ] `executeScript` handles provider-specific multi-statement syntax\n- [ ] Concurrent interactive transactions use distinct dedicated connections\n- [ ] Success commits and releases once; failure rolls back and releases once\n- [ ] Nested transaction tests exercise create\u002Frollback\u002Frelease savepoint hooks\n- [ ] Unsupported isolation levels fail as `InvalidIsolationLevel`\n- [ ] Known constraints map to structured errors\n- [ ] Unmapped database errors retain original code\u002Fmessage and surface useful `P2039`\n- [ ] Dispose ownership is tested for internal and external pools\n- [ ] Shadow database creation, use, failure cleanup, and disposal are isolated\n- [ ] Run Prisma Client integration\u002FE2E tests, not only adapter unit tests\n\n## Source references\n\n- [Driver adapter interfaces](https:\u002F\u002Fgithub.com\u002Fprisma\u002Fprisma\u002Fblob\u002Fv7\u002Fpackages\u002Fdriver-adapter-utils\u002Fsrc\u002Ftypes.ts)\n- [PostgreSQL adapter transaction implementation](https:\u002F\u002Fgithub.com\u002Fprisma\u002Fprisma\u002Fblob\u002Fv7\u002Fpackages\u002Fadapter-pg\u002Fsrc\u002Fpg.ts)\n- [PostgreSQL adapter error mapping](https:\u002F\u002Fgithub.com\u002Fprisma\u002Fprisma\u002Fblob\u002Fv7\u002Fpackages\u002Fadapter-pg\u002Fsrc\u002Ferrors.ts)\n","# Prisma SQL Driver Adapter Implementation\n\nUse this guide with the exact `@prisma\u002Fdriver-adapter-utils` version installed by the target Prisma release. Driver adapters are a protocol boundary: type-compatible code can still corrupt values, leak connections, or break transactions.\n\n## When to Apply\n\n- Implementing `SqlDriverAdapterFactory`, `SqlMigrationAwareDriverAdapterFactory`, `SqlDriverAdapter`, or `Transaction`\n- Adding nested-transaction\u002Fsavepoint support\n- Mapping driver values, column metadata, bind arguments, or database errors\n- Debugging `P2039`, transaction leaks, shadow-database failures, or adapter-specific query behavior\n\n## Contract snapshot\n\n```typescript\ninterface SqlDriverAdapterFactory extends AdapterInfo {\n  connect(): Promise\u003CSqlDriverAdapter>\n}\n\ninterface SqlMigrationAwareDriverAdapterFactory extends SqlDriverAdapterFactory {\n  connectToShadowDb(): Promise\u003CSqlDriverAdapter>\n}\n\ninterface SqlDriverAdapter extends AdapterInfo {\n  queryRaw(query: SqlQuery): Promise\u003CSqlResultSet>\n  executeRaw(query: SqlQuery): Promise\u003Cnumber>\n  executeScript(script: string): Promise\u003Cvoid>\n  startTransaction(isolationLevel?: IsolationLevel): Promise\u003CTransaction>\n  getConnectionInfo?(): ConnectionInfo\n  dispose(): Promise\u003Cvoid>\n}\n\ninterface Transaction extends AdapterInfo {\n  readonly options: { usePhantomQuery: boolean }\n  queryRaw(query: SqlQuery): Promise\u003CSqlResultSet>\n  executeRaw(query: SqlQuery): Promise\u003Cnumber>\n  commit(): Promise\u003Cvoid>\n  rollback(): Promise\u003Cvoid>\n  createSavepoint?(name: string): Promise\u003Cvoid>\n  rollbackToSavepoint?(name: string): Promise\u003Cvoid>\n  releaseSavepoint?(name: string): Promise\u003Cvoid>\n}\n```\n\n`IsolationLevel` currently includes `READ UNCOMMITTED`, `READ COMMITTED`, `REPEATABLE READ`, `SNAPSHOT`, and `SERIALIZABLE`; validate what the concrete database supports.\n\n## Priority rules\n\n| Priority | Rule | Impact |\n|----------|------|--------|\n| CRITICAL | One dedicated connection per transaction | Prevents interleaving and leaks |\n| CRITICAL | `commit`\u002F`rollback` are lifecycle cleanup hooks | Prevents duplicate COMMIT\u002FROLLBACK |\n| CRITICAL | Savepoints live on `Transaction`, not adapter-global depth | Makes nested scopes connection-local |\n| CRITICAL | Preserve original database error code\u002Fmessage | Enables useful `P2039` fallback |\n| HIGH | Map arguments and result metadata exactly | Prevents silent value corruption |\n| HIGH | Shadow databases are isolated and always cleaned up | Makes Migrate safe |\n| HIGH | Dispose only resources the adapter owns | Prevents shutting down caller-owned pools |\n\n## Query implementation\n\n`SqlQuery` contains `sql`, `args`, and parallel `argTypes`. Map each argument using both value and `ArgType`; do not discard type\u002Farity information. Execute in the driver's array\u002Ftuple row mode so column order is stable.\n\n```typescript\nclass ExampleQueryable {\n  readonly provider = 'postgres' as const\n  readonly adapterName = '@acme\u002Fadapter-example'\n\n  constructor(protected readonly connection: DriverConnection) {}\n\n  async queryRaw(query: SqlQuery): Promise\u003CSqlResultSet> {\n    try {\n      const result = await this.connection.query({\n        text: query.sql,\n        values: query.args.map((value, index) =>\n          mapArg(value, query.argTypes[index]),\n        ),\n        rowMode: 'array',\n      })\n\n      return {\n        columnNames: result.fields.map((field) => field.name),\n        columnTypes: result.fields.map(mapColumnType),\n        rows: result.rows,\n      }\n    } catch (error) {\n      throwAdapterError(error)\n    }\n  }\n\n  async executeRaw(query: SqlQuery): Promise\u003Cnumber> {\n    try {\n      const result = await this.connection.execute(\n        query.sql,\n        query.args.map((value, index) => mapArg(value, query.argTypes[index])),\n      )\n      return result.rowsAffected ?? 0\n    } catch (error) {\n      throwAdapterError(error)\n    }\n  }\n}\n```\n\n### Result mapping\n\nReturn `columnNames`, `columnTypes`, and `rows` with identical lengths\u002Forder. Map driver metadata to `ColumnTypeEnum` deliberately:\n\n- signed integer widths to `Int32`\u002F`Int64`; preserve 64-bit values without JS number truncation\n- decimal\u002Fnumeric to `Numeric` using the representation expected by Prisma\n- binary to `Uint8Array`\u002F`Bytes`\n- date-only, time-only, and timestamp to `Date`, `Time`, and `DateTime`\n- UUID, JSON, enum, arrays, and provider-specific unknown values to their explicit types\n- unsupported native types to `DriverAdapterError({ kind: 'UnsupportedNativeDataType', type })`\n\nTest `null`, empty arrays, array element types, big integers, decimals, byte arrays, JSON, dates, and user-defined\u002Funknown native types.\n\n### Script execution\n\n`executeScript` must execute a migration script as the provider expects. Prefer the driver's native multi-statement\u002Fscript facility or a real SQL parser. Naively splitting on `;` breaks functions, triggers, quoted strings, and dialect-specific blocks.\n\n## Transaction protocol\n\n`startTransaction` must acquire one dedicated connection, start the database transaction, apply the requested isolation level, and return a `Transaction` bound to that same connection. If setup fails, release it immediately.\n\n```typescript\nasync startTransaction(level?: IsolationLevel): Promise\u003CTransaction> {\n  const connection = await this.pool.acquire()\n  try {\n    const tx = new ExampleTransaction(connection, () => connection.release())\n    await tx.executeRaw({ sql: 'BEGIN', args: [], argTypes: [] })\n    if (level) {\n      await tx.executeRaw({\n        sql: `SET TRANSACTION ISOLATION LEVEL ${validateLevel(level)}`,\n        args: [],\n        argTypes: [],\n      })\n    }\n    return tx\n  } catch (error) {\n    connection.release(error)\n    throwAdapterError(error)\n  }\n}\n```\n\n### Commit and rollback\n\nPrisma coordinates the SQL `COMMIT`\u002F`ROLLBACK` through `executeRaw`. The transaction object's `commit()` and `rollback()` methods are lifecycle hooks: detach listeners and release the dedicated connection exactly once. They must not issue a second SQL commit\u002Frollback.\n\n```typescript\nclass ExampleTransaction extends ExampleQueryable implements Transaction {\n  readonly options = { usePhantomQuery: false }\n  #closed = false\n\n  constructor(connection: DriverConnection, private readonly release: () => void) {\n    super(connection)\n  }\n\n  async commit() { this.finish() }\n  async rollback() { this.finish() }\n\n  private finish() {\n    if (this.#closed) return\n    this.#closed = true\n    this.release()\n  }\n\n  async createSavepoint(name: string) {\n    await this.control(`SAVEPOINT ${safeSavepoint(name)}`)\n  }\n\n  async rollbackToSavepoint(name: string) {\n    await this.control(`ROLLBACK TO SAVEPOINT ${safeSavepoint(name)}`)\n  }\n\n  async releaseSavepoint(name: string) {\n    await this.control(`RELEASE SAVEPOINT ${safeSavepoint(name)}`)\n  }\n\n  private async control(sql: string) {\n    await this.executeRaw({ sql, args: [], argTypes: [] })\n  }\n}\n```\n\nImplement the optional savepoint methods only where the provider supports them. Validate\u002Fquote savepoint identifiers. For providers whose savepoints are intentionally no-ops, document and test that limitation.\n\nNever keep transaction depth on the shared adapter. Parallel transactions make adapter-global depth incorrect; nested state belongs to the returned transaction connection and Prisma's savepoint calls.\n\n## Error mapping\n\nWrap recognized driver failures in `DriverAdapterError`. Map known conditions to `MappedError` kinds such as constraint violations, authentication\u002Freachability, missing table\u002Fcolumn\u002Fdatabase, timeouts, closed transactions, invalid input, value range, and write conflicts.\n\nFor database errors, preserve `originalCode` and `originalMessage` even when falling back to the provider-specific raw variant:\n\n```typescript\nimport {\n  DriverAdapterError,\n  type Error as DriverAdapterErrorObject,\n  type MappedError,\n} from '@prisma\u002Fdriver-adapter-utils'\n\nfunction convertDriverError(error: DatabaseError): DriverAdapterErrorObject {\n  return {\n    originalCode: String(error.code),\n    originalMessage: error.message,\n    ...mapKnownOrRaw(error),\n  }\n}\n\nfunction mapKnownOrRaw(error: DatabaseError): MappedError {\n  if (error.code === '23505') {\n    return { kind: 'UniqueConstraintViolation', constraint: parsedConstraint(error) }\n  }\n  return {\n    kind: 'postgres',\n    code: String(error.code ?? 'N\u002FA'),\n    severity: error.severity ?? 'N\u002FA',\n    message: error.message,\n    detail: error.detail,\n    column: error.column,\n    hint: error.hint,\n  }\n}\n\nfunction throwAdapterError(error: unknown): never {\n  if (!isDatabaseError(error)) throw error\n  throw new DriverAdapterError(convertDriverError(error))\n}\n```\n\nPrisma uses preserved original details when an unmapped driver error becomes `P2039`. Do not replace every unknown exception with a fabricated `GenericJs` id; rethrow genuinely unexpected non-driver errors so programming bugs remain visible.\n\n## Factory, ownership, and shadow database\n\n- `connect()` returns a fresh usable adapter connection\u002Fpool wrapper.\n- Track whether the factory created the pool. `dispose()` closes owned pools and only detaches listeners from caller-owned pools unless an explicit option transfers ownership.\n- Implement `SqlMigrationAwareDriverAdapterFactory` only when `connectToShadowDb()` can create an isolated shadow database, connect to it, and drop it during disposal\u002Ffailure cleanup.\n- Never point the shadow adapter at the primary database. Quote generated identifiers and use cryptographically unique names.\n- `getConnectionInfo()` should accurately report `schemaName`, `maxBindValues` when applicable, and `supportsRelationJoins`.\n\n## Verification checklist\n\n- [ ] Typecheck against the exact target `@prisma\u002Fdriver-adapter-utils` version\n- [ ] `queryRaw` preserves column order, types, nulls, and precision\n- [ ] `executeRaw` reports affected rows correctly\n- [ ] `executeScript` handles provider-specific multi-statement syntax\n- [ ] Concurrent interactive transactions use distinct dedicated connections\n- [ ] Success commits and releases once; failure rolls back and releases once\n- [ ] Nested transaction tests exercise create\u002Frollback\u002Frelease savepoint hooks\n- [ ] Unsupported isolation levels fail as `InvalidIsolationLevel`\n- [ ] Known constraints map to structured errors\n- [ ] Unmapped database errors retain original code\u002Fmessage and surface useful `P2039`\n- [ ] Dispose ownership is tested for internal and external pools\n- [ ] Shadow database creation, use, failure cleanup, and disposal are isolated\n- [ ] Run Prisma Client integration\u002FE2E tests, not only adapter unit tests\n\n## Source references\n\n- [Driver adapter interfaces](https:\u002F\u002Fgithub.com\u002Fprisma\u002Fprisma\u002Fblob\u002Fv7\u002Fpackages\u002Fdriver-adapter-utils\u002Fsrc\u002Ftypes.ts)\n- [PostgreSQL adapter transaction implementation](https:\u002F\u002Fgithub.com\u002Fprisma\u002Fprisma\u002Fblob\u002Fv7\u002Fpackages\u002Fadapter-pg\u002Fsrc\u002Fpg.ts)\n- [PostgreSQL adapter error mapping](https:\u002F\u002Fgithub.com\u002Fprisma\u002Fprisma\u002Fblob\u002Fv7\u002Fpackages\u002Fadapter-pg\u002Fsrc\u002Ferrors.ts)\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26},"prisma","7.9.1","master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Fprisma-driver-adapter-implementation",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add stanfish06\u002Fskillquarium --skill prisma-driver-adapter-implementation",{"tool":41,"command":42},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill prisma-driver-adapter-implementation",{"tool":44,"command":45},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill prisma-driver-adapter-implementation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fprisma-driver-adapter-implementation\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"agents\u002Fopenai.yaml","REFERENCE","参考文档",208,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fprisma-driver-adapter-implementation\u002Fagents\u002Fopenai.yaml",[56,63,72,79,86,93],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":68,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M76ZJQZ15Q1HKC5V85NHE325","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","xarray","N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M76ZHFBXD6VXPQ02VCEG202B","writing-mstest-tests","Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M76ZCC1SC68J42QK4MDC8RCG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]