Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Piotrowski <[email protected]>
  • Loading branch information
ruheni and janpio authored Oct 27, 2023
1 parent 84b1f70 commit 641b5e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions content/200-concepts/100-components/drivers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ To use this feature:
npx prisma generate
```

## Serverless drivers
### Serverless drivers

By default, JavaScript database drivers use TCP connections. Several database providers enable use of different protocols, such as HTTP and WebSocket, to connect to your database. Example database providers include Neon, PlanetScale and Turso.

Expand All @@ -47,9 +47,9 @@ The following is a list of community maintained driver adapters:

- [TiDB](https://github.com/tidbcloud/prisma-adapter)

### Neon
#### Neon Serverless Driver

Install the Prisma adapter for Neon, Neon serverless driver and ws packages:
Install the Prisma adapter for Neon, Neon serverless driver and `ws` packages:

```sh
npm install @prisma/adapter-neon @neondatabase/serverless ws
Expand All @@ -75,7 +75,7 @@ const prisma = new PrismaClient({ adapter })

<!-- TODO: feedback link -->

### PlanetScale
#### PlanetScale Serverless Driver

Install the Prisma adapter for PlanetScale, PlanetScale serverless driver and undici packages:

Expand All @@ -102,7 +102,7 @@ const prisma = new PrismaClient({ adapter })

<!-- TODO: feedback link -->

### Turso
#### Turso

Install the Prisma adapter for LibSQL and LibSQL packages:

Expand Down
6 changes: 3 additions & 3 deletions content/300-guides/050-database/850-planetscale.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ You can use Prisma along with the PlanetScale driver using a [driver adapter](/c

<Admonition>

This feature is available from Prisma versions 5.4.2 and later.
This feature is available in Preview from Prisma versions 5.4.2 and later.

</Admonition>

Expand All @@ -258,15 +258,15 @@ Ensure you update the host value in your connection string to `aws.connect.psdb.
DATABASE_URL='mysql://johndoe:[email protected]/clear_nightsky?sslaccept=strict'
```

Install the Prisma adapter for PlanetScale, PlanetScale serverless driver and undici packages:
Install the Prisma adapter for PlanetScale, PlanetScale serverless driver and `undici` packages:

```sh
npm install @prisma/adapter-planetscale @planetscale/database undici
```

> Prisma ORM supports Node.js 16.13 and up. In Node.js 18 and up, `undici` is not needed. See [System requirements](/reference/system-requirements)
Update your Prisma Client instance to use the PlanetScale database driver:
Update your Prisma Client instance to use the PlanetScale serverless driver:

```ts
import { connect } from '@planetscale/database'
Expand Down

0 comments on commit 641b5e4

Please sign in to comment.