本文へスキップ
Kitbay
スキル公式

prisma-driver-adapter-implementation

MIT2026年11月10日 更新80GitHubスター

A skill from Prisma for developers who build or change SQL driver adapters for Prisma ORM 7, the layer that connects the ORM to a database driver.

スキルの内容

A skill from Prisma for developers who build or change SQL driver adapters for Prisma ORM 7, the layer that connects the ORM to a database driver. It sets out the adapter interfaces an implementation must satisfy, the transaction lifecycle including nested transactions and optional savepoints, how query arguments, result sets and column types are mapped, and how database errors are converted while keeping the original error. It ends with checks for unit and end-to-end testing. This is guidance for adapter authors, not for application code, and it is plain instructions with no scripts.

できること

  • Implement a Prisma ORM 7 SQL driver adapter
  • Handle transactions and savepoints in an adapter
  • Map column types and query results
  • Convert driver errors to Prisma adapter errors