跳到正文
文章入门

在 Workers 中使用 Prisma Postgres 数据库

搭建一个通过 Prisma ORM 查询托管 Prisma Postgres 数据库的 Cloudflare Workers 项目,并完成部署。

最近更新
2026年11月10日
阅读原文

该介绍目前仅提供英文版本。

Prisma Postgres is a managed PostgreSQL database with built-in connection pooling. This tutorial queries it from a Worker with Prisma ORM, which runs inside the Worker using the nodejs_compat compatibility flag.

What you’ll learn

  • Create a Worker project with C3
  • Set up Prisma ORM and a Prisma Postgres database
  • Write the application’s queries
  • Deploy to Cloudflare

Cloudflare products used

Workers.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

继续学习