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-index-set-up-and-use-a-database-workflow-guide.mdA tutorial guide for setting up a Cloudflare Worker project and integrating it with a Prisma Postgres database.Questions about a tutorial guide for setting up a Cloudflare Worker project and integrating it with a Prisma Postgres database.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud.textThe npm command used to initialize a new Cloudflare Workers project for using Prisma with a Postgres database.Exact payloads, commands, or snippets shown in The npm command used to initialize a new Cloudflare Workers project for using Prisma with a Postgres database.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-2.textA step-by-step guide and command sequence for setting up a Prisma Postgres database within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for setting up a Prisma Postgres database within a Cloudflare Workers envir...
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-3.textA JavaScript code snippet demonstrating the basic structure for a Cloudflare Worker configured to interact with a Prisma Postgres database.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating the basic structure for a Cloudflare Worker configured to interact with a Pri...
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-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-index-set-up-and-use-a-database-cloud-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-index-set-up-and-use-a-database-cloud-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-index-set-up-and-use-a-database-cloud-7.textThe shell commands required to install Prisma as a development dependency using Bun for a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install Prisma as a development dependency using Bun for a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-8.textThe npm installation command required to add the Prisma Accelerate extension to a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The npm installation command required to add the Prisma Accelerate extension to a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-9.textThe shell commands required to install the Prisma Accelerate extension for a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install the Prisma Accelerate extension for a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-10.textThe shell commands required to install the Prisma Accelerate extension for a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install the Prisma Accelerate extension for a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-11.textThe shell commands required to install the Prisma Accelerate extension using bun for a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install the Prisma Accelerate extension using bun for a Cloudflare Workers project.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-12.textThe shell commands required to install dotenv-cli and initialize the environment for a Cloudflare Workers project using Prisma Postgres.Exact payloads, commands, or snippets shown in The shell commands required to install dotenv-cli and initialize the environment for a Cloudflare Workers project usi...
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-13.textA command sequence for installing dotenv-cli as a development dependency to manage environment variables in a Cloudflare Workers project using Prisma Postgres.Exact payloads, commands, or snippets shown in A command sequence for installing dotenv-cli as a development dependency to manage environment variables in a Cloudfl...
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-14.textThe shell commands required to install dotenv-cli and other dependencies for setting up a Prisma Postgres database in a Cloudflare Workers project.Exact payloads, commands, or snippets shown in The shell commands required to install dotenv-cli and other dependencies for setting up a Prisma Postgres database in...
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-15.textA list of terminal commands for installing dependencies 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 dependencies and setting up a Prisma Postgres database within a Cloudflare...
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-16.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-index-set-up-and-use-a-database-cloud-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-index-set-up-and-use-a-database-cloud-18.textThe shell command used to initialize a Prisma project with a database configuration for Cloudflare Workers.Exact payloads, commands, or snippets shown in The shell command used to initialize a Prisma project with a database configuration for Cloudflare Workers.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-19.textA shell command to copy environment variables from a .env file to a .dev.vars file for local 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 Workers development.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-20.textA Prisma schema file defining a User model for use with Cloudflare Workers and a PostgreSQL database.Exact payloads, commands, or snippets shown in A Prisma schema file defining a User model for use with Cloudflare Workers and a PostgreSQL database.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-21.textA package.json configuration file containing npm scripts for running Prisma migrations, generating the client, and launching Prisma Studio within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A package.json configuration file containing npm scripts for running Prisma migrations, generating the client, and la...
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-22.textA step-by-step guide and command sequence for configuring a Prisma Postgres database within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for configuring a Prisma Postgres database within a Cloudflare Workers envi...
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-23.textA TypeScript code example demonstrating how to initialize a PrismaClient with a DATABASE_URL within a Cloudflare Workers environment to interact with a Prisma Postgres database.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to initialize a PrismaClient with a DATABASEURL within a Cloudflare Worke...
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-24.textA step-by-step guide and command sequence for configuring a Prisma Postgres database within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for configuring a Prisma Postgres database within a Cloudflare Workers envi...
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-25.textA step-by-step guide and implementation example for connecting Cloudflare Workers to a Prisma Postgres database.Exact payloads, commands, or snippets shown in A step-by-step guide and implementation example for connecting Cloudflare Workers to a Prisma Postgres database.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-26.textA command sequence demonstrating how to use wrangler to set the DATABASE_URL secret for a Cloudflare Worker.Exact payloads, commands, or snippets shown in A command sequence demonstrating how to use wrangler to set the DATABASEURL secret for a Cloudflare Worker.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-27.textA step-by-step guide and command sequence 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 sequence for setting up a Cloudflare Worker with a Prisma Postgres database.
examples/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-cloud-28.textA step-by-step guide and command sequence for configuring and deploying a Prisma Postgres database within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A step-by-step guide and command sequence for configuring and deploying a Prisma Postgres database within a Cloudflar...

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/index.md