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...
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-using-prisma-postgres-with-index-set-up-and-use-a-database-workflow-guide.md | A 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.text | The 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.text | A 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.text | A 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.text | The 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.text | The 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.text | The 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.text | The 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.text | The 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.text | The 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.text | The 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.text | The 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.text | The 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.text | A 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.text | The 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.text | A 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.text | The 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.text | The 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.text | The 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
