Prompt Buddy logoPrompt Buddy

prisma · Prisma Docs

CockroachDB (/docs/prisma-orm/add-to-existing-project/cockroachdb)

A guide for integrating Prisma ORM into an existing TypeScript project using CockroachDB, covering dependency installation, schema initialization, connection configuration, database introspection, and migration baseli...

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

CockroachDB (/docs/prisma-orm/add-to-existing-project/cockroachdb)

A guide for integrating Prisma ORM into an existing TypeScript project using CockroachDB, covering dependency installation, schema initialization, connection configuration, database introspection, and migration baseli...

When To Use

Use when you need to integrate Prisma ORM into a TypeScript project that is already using CockroachDB as its database engine.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/prisma-cockroachdb-docs-orm-add-to-existing-project-workflow-guide.mdInstructions and package manager commands for integrating CockroachDB into an existing project using Prisma ORM.Questions about instructions and package manager commands for integrating CockroachDB into an existing project using Prisma ORM.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach.bashBash commands to install Prisma, the Prisma Client, and the PostgreSQL adapter required for CockroachDB integration.Exact payloads, commands, or snippets shown in Bash commands to install Prisma, the Prisma Client, and the PostgreSQL adapter required for CockroachDB integration.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-2.bashBash commands to install Prisma, client, and PostgreSQL adapter dependencies for a CockroachDB project.Exact payloads, commands, or snippets shown in Bash commands to install Prisma, client, and PostgreSQL adapter dependencies for a CockroachDB project.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-3.bashBash commands to install Prisma, PostgreSQL types, and the CockroachDB adapter using yarn.Exact payloads, commands, or snippets shown in Bash commands to install Prisma, PostgreSQL types, and the CockroachDB adapter using yarn.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-4.bashBash commands to install Prisma, PostgreSQL types, and the CockroachDB adapter using the Bun package manager.Exact payloads, commands, or snippets shown in Bash commands to install Prisma, PostgreSQL types, and the CockroachDB adapter using the Bun package manager.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-init-cockroac.bashA bash command to initialize a Prisma project with the CockroachDB datasource provider and a custom output directory.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma project with the CockroachDB datasource provider and a custom output directory.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-init-cockroac-2.bashA bash command to initialize a Prisma client with the CockroachDB datasource provider and a custom output directory.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma client with the CockroachDB datasource provider and a custom output directory.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-init-cockroac-3.bashA bash command to initialize a Prisma client with the CockroachDB datasource provider and a custom output directory.Exact payloads, commands, or snippets shown in A bash command to initialize a Prisma client with the CockroachDB datasource provider and a custom output directory.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-init-cockroac-4.bashA bash command using bunx to initialize a Prisma project with the cockroachdb datasource provider.Exact payloads, commands, or snippets shown in A bash command using bunx to initialize a Prisma project with the cockroachdb datasource provider.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach.typescriptA TypeScript configuration file demonstrating how to set up a Prisma schema and migrations for a CockroachDB database connection.Exact payloads, commands, or snippets shown in A TypeScript configuration file demonstrating how to set up a Prisma schema and migrations for a CockroachDB database...
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach.prismaA Prisma schema configuration snippet defining a CockroachDB datasource provider.Exact payloads, commands, or snippets shown in A Prisma schema configuration snippet defining a CockroachDB datasource provider.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach.textAn example of a CockroachDB connection string formatted for use with the Prisma ORM.Exact payloads, commands, or snippets shown in An example of a CockroachDB connection string formatted for use with the Prisma ORM.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-2.textA text example of a CockroachDB connection string formatted for use with the Prisma ORM.Exact payloads, commands, or snippets shown in A text example of a CockroachDB connection string formatted for use with the Prisma ORM.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-5.bashA bash command demonstrating how to use npx prisma db pull to introspect an existing CockroachDB database.Exact payloads, commands, or snippets shown in A bash command demonstrating how to use npx prisma db pull to introspect an existing CockroachDB database.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-6.bashA bash command using pnpm to pull the database schema from a CockroachDB instance into a Prisma project.Exact payloads, commands, or snippets shown in A bash command using pnpm to pull the database schema from a CockroachDB instance into a Prisma project.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-7.bashA bash command using yarn dlx to pull the database schema from a CockroachDB instance into a Prisma project.Exact payloads, commands, or snippets shown in A bash command using yarn dlx to pull the database schema from a CockroachDB instance into a Prisma project.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-8.bashA bash command using bunx to perform a database pull from a CockroachDB instance into a Prisma project.Exact payloads, commands, or snippets shown in A bash command using bunx to perform a database pull from a CockroachDB instance into a Prisma project.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-9.bashBash commands to create the initial migration directory for integrating CockroachDB with Prisma ORM.Exact payloads, commands, or snippets shown in Bash commands to create the initial migration directory for integrating CockroachDB with Prisma ORM.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-10.bashA bash command to generate an initial SQL migration script for CockroachDB using the prisma migrate diff command.Exact payloads, commands, or snippets shown in A bash command to generate an initial SQL migration script for CockroachDB using the prisma migrate diff command.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-11.bashA bash command to generate an initial SQL migration script for CockroachDB using prisma migrate diff.Exact payloads, commands, or snippets shown in A bash command to generate an initial SQL migration script for CockroachDB using prisma migrate diff.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-12.bashA bash command using prisma migrate diff to generate an initial SQL migration script for a CockroachDB database.Exact payloads, commands, or snippets shown in A bash command using prisma migrate diff to generate an initial SQL migration script for a CockroachDB database.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-13.bashA bash command using prisma migrate diff to generate an initial SQL migration script from a schema for CockroachDB.Exact payloads, commands, or snippets shown in A bash command using prisma migrate diff to generate an initial SQL migration script from a schema for CockroachDB.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-14.bashA bash command to resolve a Prisma migration by marking the initial migration as applied for a CockroachDB database.Exact payloads, commands, or snippets shown in A bash command to resolve a Prisma migration by marking the initial migration as applied for a CockroachDB database.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-15.bashA bash command demonstrating how to use the prisma migrate resolve command to mark a migration as applied for CockroachDB.Exact payloads, commands, or snippets shown in A bash command demonstrating how to use the prisma migrate resolve command to mark a migration as applied for Cockroa...
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-16.bashA bash command to resolve a Prisma migration by marking the initial migration as applied for a CockroachDB database.Exact payloads, commands, or snippets shown in A bash command to resolve a Prisma migration by marking the initial migration as applied for a CockroachDB database.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-17.bashA bash command to resolve a Prisma migration by marking the initial migration as applied for a CockroachDB database.Exact payloads, commands, or snippets shown in A bash command to resolve a Prisma migration by marking the initial migration as applied for a CockroachDB database.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-18.bashBash commands to integrate CockroachDB into an existing Prisma ORM project using npx prisma generate.Exact payloads, commands, or snippets shown in Bash commands to integrate CockroachDB into an existing Prisma ORM project using npx prisma generate.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-19.bashA bash command to generate the Prisma Client for a project using CockroachDB via pnpm.Exact payloads, commands, or snippets shown in A bash command to generate the Prisma Client for a project using CockroachDB via pnpm.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-20.bashBash commands to add CockroachDB to an existing Prisma project using yarn dlx prisma generate.Exact payloads, commands, or snippets shown in Bash commands to add CockroachDB to an existing Prisma project using yarn dlx prisma generate.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-21.bashA bash command to generate the Prisma client using bunx for a CockroachDB integration.Exact payloads, commands, or snippets shown in A bash command to generate the Prisma client using bunx for a CockroachDB integration.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-2.typescriptA TypeScript code snippet demonstrating how to configure a Prisma Client instance using a CockroachDB connection string and the PrismaPg adapter.Exact payloads, commands, or snippets shown in A TypeScript code snippet demonstrating how to configure a Prisma Client instance using a CockroachDB connection stri...
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-3.typescriptA TypeScript script demonstrating how to perform basic database queries using Prisma with a CockroachDB connection.Exact payloads, commands, or snippets shown in A TypeScript script demonstrating how to perform basic database queries using Prisma with a CockroachDB connection.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-22.bashBash commands to configure and connect Prisma ORM to an existing CockroachDB database.Exact payloads, commands, or snippets shown in Bash commands to configure and connect Prisma ORM to an existing CockroachDB database.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-23.bashA bash command to execute a TypeScript script for configuring CockroachDB within an existing Prisma project.Exact payloads, commands, or snippets shown in A bash command to execute a TypeScript script for configuring CockroachDB within an existing Prisma project.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-24.bashA bash command to execute a TypeScript script for configuring CockroachDB within an existing Prisma project.Exact payloads, commands, or snippets shown in A bash command to execute a TypeScript script for configuring CockroachDB within an existing Prisma project.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-25.bashA bash command demonstrating how to execute a TypeScript script using bunx and tsx for a CockroachDB integration in an existing Prisma project.Exact payloads, commands, or snippets shown in A bash command demonstrating how to execute a TypeScript script using bunx and tsx for a CockroachDB integration in a...
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-cockroachdb-e.prismaA Prisma schema file demonstrating how to configure a model for an existing CockroachDB database.Exact payloads, commands, or snippets shown in A Prisma schema file demonstrating how to configure a model for an existing CockroachDB database.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-26.bashA bash command demonstrating how to run a Prisma migration for a CockroachDB database.Exact payloads, commands, or snippets shown in A bash command demonstrating how to run a Prisma migration for a CockroachDB database.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-27.bashA bash command to run a Prisma migration against a CockroachDB database using pnpm.Exact payloads, commands, or snippets shown in A bash command to run a Prisma migration against a CockroachDB database using pnpm.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-28.bashA bash command to run a Prisma migration against a CockroachDB database using yarn dlx.Exact payloads, commands, or snippets shown in A bash command to run a Prisma migration against a CockroachDB database using yarn dlx.
examples/prisma-cockroachdb-docs-orm-add-to-existing-project-prisma-orm-cockroach-29.bashA bash command using bunx to run a Prisma migration for a CockroachDB database.Exact payloads, commands, or snippets shown in A bash command using bunx to run a Prisma migration for a CockroachDB database.

What This Skill Covers

  • CockroachDB (/docs/prisma-orm/add-to-existing-project/cockroachdb)
  • Main sections: npm, pnpm, yarn, bun, npm.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://www.prisma.io/docs/prisma-orm/add-to-existing-project/cockroachdb