Zum Inhalt springen
Kitbay

prisma-driver-adapter-implementation

MITAktualisiert am 10. Nov. 202680GitHub-Sterne

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.

Was der Skill vermittelt

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.

Funktionen

  • 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