Skip to content
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
cfb36a9
feat: add blog on using prisma postgres with workers
ankur-arch Feb 12, 2025
0eba281
chore: change the title
ankur-arch Feb 12, 2025
f63d044
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
c8a1fe7
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
7bdbbd6
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
4353aed
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
b3a88cc
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
e5d0ddb
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
9c5d4d7
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
208ef7b
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
742072d
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
955c130
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
4e100e2
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
f110199
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
2856c7d
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
6c66bbb
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
cd2ec5c
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
7730c59
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
b7e6305
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
55822d1
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
e5abe97
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
d0fcb32
chore: add secrets adding output
ankur-arch Feb 13, 2025
5ad0159
Merge pull request #1 from ankur-arch/ppg-tutorial
ankur-arch Feb 13, 2025
f8b4e4f
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
6e020d4
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
3f7dc93
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
edca933
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
25e15eb
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
ankur-arch Feb 13, 2025
2cdddab
chore: add more clarity
ankur-arch Feb 13, 2025
541a206
Apply suggestions from code review
Oxyjun Feb 18, 2025
3f52c2f
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-…
Oxyjun Feb 18, 2025
077e0a3
Merge branch 'cloudflare:production' into production
ankur-arch Mar 7, 2025
04ad53c
docs: update urls and polish content in prisma guide
ankur-arch Mar 7, 2025
edf583d
fix: replace 401 url
ankur-arch Mar 7, 2025
9b96c5e
Merge branch 'cloudflare:production' into patch-prisma-postgres-guide
ankur-arch Mar 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ languages:
- PostgreSQL
---

[Prisma Postgres](https://www.prisma.io/postgres) is a managed, serverless PostgreSQL database. It supports features like connection pooling, caching, real-time subscriptions, and query optimization recommendations.
[Prisma Postgres](https://www.prisma.io/postgres?utm_source=cloudflare&utm_medium=guides&utm_campaign=workers) is a managed, serverless PostgreSQL database. It supports features like connection pooling, caching, real-time subscriptions, and query optimization recommendations.

In this tutorial, you will learn how to:

- Set up a Cloudflare Workers project with [Prisma ORM](https://www.prisma.io/docs).
- Set up a Cloudflare Workers project with [Prisma ORM](https://www.prisma.io/docs?utm_source=cloudflare&utm_medium=guides&utm_campaign=workers).
- Create a Prisma Postgres instance from the Prisma CLI.
- Model data and run migrations with Prisma Postgres.
- Query the database from Workers.
Expand Down Expand Up @@ -85,13 +85,13 @@ Initialize Prisma in your application:
npx prisma@latest init --db
```

If you do not have a [Prisma Data Platform](https://console.prisma.io/) account yet, or if you are not logged in, the command will prompt you to log in using one of the available authentication providers. A browser window will open so you can log in or create an account. Return to the CLI after you have completed this step.
If you do not have a [Prisma Data Platform](https://pris.ly/pdp?utm_source=cloudflare&utm_medium=guides&utm_campaign=workers) account yet, or if you are not logged in, the command will prompt you to log in using one of the available authentication providers. A browser window will open so you can log in or create an account. Return to the CLI after you have completed this step.

Once logged in (or if you were already logged in), the CLI will prompt you to select a project name and a database region.

Once the command has terminated, it will have created:

- A project in your [Platform Console](https://console.prisma.io/) containing a Prisma Postgres database instance.
- A project in your [Platform Console](https://pris.ly/pdp?utm_source=cloudflare&utm_medium=guides&utm_campaign=workers) containing a Prisma Postgres database instance.
- A `prisma` folder containing `schema.prisma`, where you will define your database schema.
- An `.env` file in the project root, which will contain the Prisma Postgres database url `DATABASE_URL=<your-prisma-postgres-database-url>`.

Expand Down Expand Up @@ -241,7 +241,5 @@ Congratulations on building and deploying a simple application with Prisma Postg

To enhance your application further:

- Add [caching](https://www.prisma.io/docs/postgres/caching) to your queries.
- Explore the [Prisma Postgres documentation](https://www.prisma.io/docs/postgres/getting-started).

To see how to build a real-time application with Cloudflare Workers and Prisma Postgres, read [this](https://www.prisma.io/docs/guides/prisma-postgres-realtime-on-cloudflare) guide.
- Add [caching](https://www.prisma.io/docs/postgres/caching?utm_source=cloudflare&utm_medium=guides&utm_campaign=workers) to your queries.
- Explore the [Prisma Postgres documentation](https://www.prisma.io/docs/postgres/getting-started?utm_source=cloudflare&utm_medium=guides&utm_campaign=workers).