@prisma/adapter-planetscale 6.16.0-dev.32 → 6.16.0-dev.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -23
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,35 +8,13 @@ PlanetScale's serverless driver provides a way of communicating with your Planet
|
|
|
8
8
|
|
|
9
9
|
## Getting started
|
|
10
10
|
|
|
11
|
-
To get started, enable the `driverAdapters` Preview feature in your Prisma schema:
|
|
12
|
-
|
|
13
|
-
```prisma
|
|
14
|
-
// schema.prisma
|
|
15
|
-
generator client {
|
|
16
|
-
provider = "prisma-client-js"
|
|
17
|
-
previewFeatures = ["driverAdapters"]
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
datasource db {
|
|
21
|
-
provider = "mysql"
|
|
22
|
-
url = env("DATABASE_URL")
|
|
23
|
-
relationMode = "prisma"
|
|
24
|
-
}
|
|
25
|
-
```
|
|
26
|
-
|
|
27
11
|
> **Note**: Ensure you update the host value in your connection string to `aws.connect.psdb.cloud`. You can learn more about this [here](https://planetscale.com/docs/tutorials/planetscale-serverless-driver#add-and-use-the-planetscale-serverless-driver-for-javascript-to-your-project).
|
|
28
12
|
>
|
|
29
13
|
> ```bash
|
|
30
14
|
> DATABASE_URL="mysql://user:password@aws.connect.psdb.cloud/database_name?sslaccept=strict"
|
|
31
15
|
> ```
|
|
32
16
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
```sh
|
|
36
|
-
npx prisma generate
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Install the Prisma adapter for PlanetScale and `undici` packages:
|
|
17
|
+
To get started, install the Prisma adapter for PlanetScale and `undici` packages:
|
|
40
18
|
|
|
41
19
|
```sh
|
|
42
20
|
npm install @prisma/adapter-planetscale
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/adapter-planetscale",
|
|
3
|
-
"version": "6.16.0-dev.
|
|
3
|
+
"version": "6.16.0-dev.33",
|
|
4
4
|
"description": "Prisma's driver adapter for \"@planetscale/database\"",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"async-mutex": "0.5.0",
|
|
35
35
|
"@planetscale/database": "^1.15.0",
|
|
36
|
-
"@prisma/driver-adapter-utils": "6.16.0-dev.
|
|
36
|
+
"@prisma/driver-adapter-utils": "6.16.0-dev.33"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"undici": "7.4.0"
|