Skip to content

Commit 0b9cd74

Browse files
update
1 parent 4ea7fb8 commit 0b9cd74

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig, env } from "prisma/config";
2+
3+
export default defineConfig({
4+
schema: "prisma/schema.prisma",
5+
migrations: {
6+
path: "prisma/migrations",
7+
},
8+
engine: "classic",
9+
datasource: {
10+
url: env("DATABASE_URL"),
11+
},
12+
});

generator-prisma-client/bun/prisma/schema.prisma

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// This is your Prisma schema file,
22
// learn more about it in the docs: https://pris.ly/d/prisma-schema
33

4-
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
5-
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
6-
74
generator client {
85
provider = "prisma-client"
96
output = "./generated/"

generator-prisma-client/deno-deploy/README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ This project showcases how to use the Prisma ORM with Prisma Postgres in an ESM
66

77
To successfully run the project, you will need the following:
88

9-
- Two **Prisma Postgres** connection strings:
10-
- Your **Prisma Postgres + Accelerate connection string** (containing your **Prisma API key**) which you can get by enabling Postgres in a project in your [Prisma Data Platform](https://pris.ly/pdp) account. You will use this connection string to run Prisma migrations.
11-
- Your **Prisma Postgres direct TCP connection string** which you will use with Prisma Client.
12-
Learn more in the [docs](https://www.prisma.io/docs/postgres/database/direct-connections).
9+
- A **Prisma Postgres** connection string. You can create a project in your [Prisma Data Platform](https://pris.ly/pdp) account and enable Postgres to obtain one.
1310

1411
## Tech Stack
1512

@@ -47,21 +44,15 @@ Create a `.env` in the root of the project directory:
4744
touch .env
4845
```
4946

50-
Now, open the `.env` file and set the `DATABASE_URL` environment variables with the values of your connection string and your Prisma Postgres connection string:
47+
Now, open the `.env` file and set the `DATABASE_URL` environment variable with your Prisma Postgres connection string:
5148

5249
```bash
5350
# .env
5451

55-
# Prisma Postgres connection string (used for migrations)
5652
DATABASE_URL="__YOUR_PRISMA_POSTGRES_CONNECTION_STRING__"
57-
58-
# Postgres connection string (used for queries by Prisma Client)
59-
DIRECT_URL="__YOUR_PRISMA_POSTGRES_DIRECT_CONNECTION_STRING__"
6053
```
6154

62-
Note that `__YOUR_PRISMA_POSTGRES_CONNECTION_STRING__` is a placeholder value that you need to replace with the values of your Prisma Postgres + Accelerate connection string. Notice that the Accelerate connection string has the following structure: `prisma+postgres://accelerate.prisma-data.net/?api_key=<api_key_value>`.
63-
64-
Note that `__YOUR_PRISMA_POSTGRES_DIRECT_CONNECTION_STRING__` is a placeholder value that you need to replace with the values of your Prisma Postgres direct TCP connection string. The direct connection string has the following structure: `postgres://<username>:<password>@<host>:<port>/<database>`.
55+
Replace `__YOUR_PRISMA_POSTGRES_CONNECTION_STRING__` with your actual Prisma Postgres connection string.
6556

6657
### 3. Generate Prisma Client
6758

0 commit comments

Comments
 (0)