Skip to main content
Jeden Skill in Manus ausführen
mit einem Klick

prisma-patterns

Sterne2
Forks0
Aktualisiert9. Juli 2026 um 00:38

Production patterns and footgun avoidance for the Prisma ORM in TypeScript backends: schema and index design, ID strategy, include-vs-select and DTO mapping, transaction form selection, the PrismaClient singleton, cursor pagination, soft delete, typed error translation, and serverless connection pooling. Emphasises the non-obvious traps that silently corrupt data or exhaust connections — updateMany/deleteMany returning a count instead of rows, the interactive $transaction 5-second timeout, `migrate dev` resetting the database, @updatedAt skipping bulk writes, edited migration files breaking checksums, and where soft delete leaks through *OrThrow reads. Use when designing Prisma schema, writing queries or transactions, running migrations, or deploying to serverless runtimes.

Installation

Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.

SKILL.md
readonly