Pular para o conteúdo
Kitbay
SkillOficial

prisma-driver-adapter-implementation

MITAtualizado em 10 de nov. de 202680Estrelas no GitHub

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.

O que a skill ensina

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.

O que faz

  • 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