prisma-next-runtime

Installation
SKILL.md

Prisma Next — Runtime (db.ts Wiring)

Edit your data contract. Prisma handles the rest.

This skill covers the runtime entry pointdb.ts — and how to compose the database client with extensions, middleware, and environment configuration.

When to Use

  • User is wiring up db.ts for the first time (post-init).
  • User wants to add middleware (telemetry, lints, budgets, custom).
  • User wants per-environment config (dev vs prod, multi-region).
  • User wants to switch between the Postgres and Mongo façades.
  • User wants to wrap operations in db.transaction(...).
  • User is running a one-off script (tsx my-script.ts, Node CLI, CI task) and the process won't exit after queries finish, or they need script teardown (db.close(), await using).
  • User mentions: db.ts, postgres(), mongo(), middleware, telemetry, lints, budgets, DATABASE_URL, .env, connection pool, poolOptions, dev vs prod, transactions, read replicas, multi-database, script won't exit, hangs, db.close, db.end, close connection, pool.end, await using.

When Not to Use

Related skills

More from prisma/prisma-next

Installs
70
GitHub Stars
333
First Seen
9 days ago