Skill 08 · Prisma Postgres Setup
Subchapter 8.1
references/operations.mdMarkdown2 KBView on GitHub
Read this only for work beyond connecting one application.
Use Prisma Console (opens in a new tab) to inspect the selected project and open its database in Studio. Use links returned by the API or UI rather than constructing Console URLs from guessed ID formats.
For usage, backups, connections, or restoration, inspect current Platform CLI help or the Management API schema (opens in a new tab). Resolve resource IDs before acting. Database deletion, restoration, and credential revocation are separate actions requiring the user’s authorization; they are not routine setup steps.
Use @prisma/management-api-sdk for a typed API integration. Its installed types define current routes and request/response shapes independently of ORM versions.
createManagementApiClient({ token }) uses an existing token. Check HTTP errors before reading response data and follow pagination on collection routes.createManagementApiSdk(...) supports OAuth and token refresh. Implement persistent, protected token storage; do not copy a no-op storage example into an application.For exact interfaces and a complete integration, use the SDK documentation (opens in a new tab) and installed package types. Keep ORM schema and migration work in the version-matched ORM skill.