Skip to content
Kitbay
Submit

prisma-driver-adapter-implementation

MITUpdated on Nov 10, 202680GitHub stars

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.

What the skill teaches

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.

Capabilities

  • 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