Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Set up and use a Prisma Postgres database

A step-by-step tutorial for integrating Prisma ORM with Cloudflare Workers to manage a Prisma Postgres serverless database, including project initialization, dependency installation, schema migration, and database que...

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Set up and use a Prisma Postgres database

A step-by-step tutorial for integrating Prisma ORM with Cloudflare Workers to manage a Prisma Postgres serverless database, including project initialization, dependency installation, schema migration, and database que...

When To Use

Use when you need to configure a Cloudflare Workers project to interact with a Prisma Postgres database using Prisma ORM and migrations.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-using-prisma-postgres-with-set-up-and-use-a-database-workflow-guide.mdA step-by-step tutorial for configuring and using a Prisma Postgres database within a Cloudflare Workers project.Questions about a step-by-step tutorial for configuring and using a Prisma Postgres database within a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare-.textThe npm command used to initialize a new Cloudflare Workers project configured for Prisma and Postgres integration.Exact payloads, commands, or snippets shown in The npm command used to initialize a new Cloudflare Workers project configured for Prisma and Postgres integration.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--2.textA step-by-step guide and command sequence for initializing a Cloudflare Workers project integrated with a Prisma Postgres database.Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for initializing a Cloudflare Workers project integrated with a Prisma Post...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--3.textA code example demonstrating how to configure and use a Prisma Postgres database within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A code example demonstrating how to configure and use a Prisma Postgres database within a Cloudflare Workers environm...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--4.textThe shell commands required to install the Prisma development dependency for a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install the Prisma development dependency for a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--5.textThe shell commands required to install the Prisma development dependency using yarn for a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install the Prisma development dependency using yarn for a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--6.textThe shell commands required to install the Prisma development dependency using pnpm for a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install the Prisma development dependency using pnpm for a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--7.textA list of terminal commands for installing Prisma and setting up a Prisma Postgres database within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A list of terminal commands for installing Prisma and setting up a Prisma Postgres database within a Cloudflare Worke...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--8.textThe npm installation command for adding the Prisma Accelerate extension to a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The npm installation command for adding the Prisma Accelerate extension to a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--9.textThe shell commands required to install the Prisma Accelerate extension for Cloudflare Workers.Exact payloads, commands, or snippets shown in The shell commands required to install the Prisma Accelerate extension for Cloudflare Workers.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--10.textThe pnpm command required to add the Prisma Accelerate extension to a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The pnpm command required to add the Prisma Accelerate extension to a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--11.textThe shell command to add the Prisma Accelerate extension to a project using the Bun package manager.Exact payloads, commands, or snippets shown in The shell command to add the Prisma Accelerate extension to a project using the Bun package manager.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--12.textThe shell command to install dotenv-cli as a development dependency for configuring environment variables in a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell command to install dotenv-cli as a development dependency for configuring environment variables in a Cloudf...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--13.textThe command to install dotenv-cli as a development dependency for managing environment variables in a Cloudflare Workers project using Prisma Postgres.Exact payloads, commands, or snippets shown in The command to install dotenv-cli as a development dependency for managing environment variables in a Cloudflare Work...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--14.textThe shell command to install dotenv-cli as a development dependency for managing environment variables in a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell command to install dotenv-cli as a development dependency for managing environment variables in a Cloudflar...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--15.textA command to install dotenv-cli as a development dependency using bun for managing environment variables in a Cloudflare Workers project.Exact payloads, commands, or snippets shown in A command to install dotenv-cli as a development dependency using bun for managing environment variables in a Cloudfl...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--16.textThe npx prisma command used to initialize a Prisma project with a Postgres database configuration for Cloudflare Workers.Exact payloads, commands, or snippets shown in The npx prisma command used to initialize a Prisma project with a Postgres database configuration for Cloudflare Work...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--17.textThe shell command used to initialize a Prisma project with a database connection for Cloudflare Workers.Exact payloads, commands, or snippets shown in The shell command used to initialize a Prisma project with a database connection for Cloudflare Workers.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--18.textThe command to initialize a Prisma project with a database connection for Cloudflare Workers.Exact payloads, commands, or snippets shown in The command to initialize a Prisma project with a database connection for Cloudflare Workers.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--19.textA shell command to copy environment variables from a .env file to a .dev.vars file for local Cloudflare Workers development.Exact payloads, commands, or snippets shown in A shell command to copy environment variables from a .env file to a .dev.vars file for local Cloudflare Workers devel...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--20.textA Prisma schema file defining a User model and configuring the PostgreSQL provider for use with Cloudflare Workers.Exact payloads, commands, or snippets shown in A Prisma schema file defining a User model and configuring the PostgreSQL provider for use with Cloudflare Workers.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--21.textThe package.json scripts configuration for managing Prisma migrations, generation, and studio within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in The package.json scripts configuration for managing Prisma migrations, generation, and studio within a Cloudflare Wor...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--22.textThe npm command used to run database migrations for a Prisma Postgres setup within Cloudflare Workers.Exact payloads, commands, or snippets shown in The npm command used to run database migrations for a Prisma Postgres setup within Cloudflare Workers.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--23.textA TypeScript code example demonstrating how to initialize and use the Prisma Client within a Cloudflare Worker to connect to a Prisma Postgres database.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize and use the Prisma Client within a Cloudflare Worker to con...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--24.textA list of terminal commands required to initialize and run the development environment for a Cloudflare Workers project using Prisma and Postgres.Exact payloads, commands, or snippets shown in A list of terminal commands required to initialize and run the development environment for a Cloudflare Workers proje...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--25.textA step-by-step tutorial guide for configuring and using a Prisma Postgres database within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A step-by-step tutorial guide for configuring and using a Prisma Postgres database within a Cloudflare Workers enviro...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--26.textA command to securely store the Prisma Postgres database connection string as a secret in a Cloudflare Workers environment using Wrangler.Exact payloads, commands, or snippets shown in A command to securely store the Prisma Postgres database connection string as a secret in a Cloudflare Workers enviro...
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--27.textA step-by-step guide and command-line interaction for setting up a Cloudflare Worker with a Prisma Postgres database.Exact payloads, commands, or snippets shown in A step-by-step guide and command-line interaction for setting up a Cloudflare Worker with a Prisma Postgres database.
examples/workers-using-prisma-postgres-with-set-up-and-use-a-database-cloudflare--28.textA list of terminal commands used to deploy a Cloudflare Worker integrated with a Prisma Postgres database.Exact payloads, commands, or snippets shown in A list of terminal commands used to deploy a Cloudflare Worker integrated with a Prisma Postgres database.

What This Skill Covers

  • Prisma Postgres ↗ is a managed, serverless PostgreSQL database. It supports features like connection pooling, caching, real-time subscriptions, and query opt...
  • Main sections: Tags, Prerequisites, 1\. Create a new Worker project, 2\. Setup Prisma in your project, 2.1\. Install required dependencies.

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://developers.cloudflare.com/workers/tutorials/using-prisma-postgres-with-workers