Skip to content
Open
Changes from all commits
Commits
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
9 changes: 6 additions & 3 deletions sdk/ts/orm/prisma.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ yarn add @libsql/client @prisma/adapter-libsql

</Step>

<Step title="Enable the `driverAdapters` preview feature flag:">
<Step title="Configure your Prisma schema">

```js prisma/schema.prisma
generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters"]
provider = "prisma-client-js"
}

datasource db {
Expand All @@ -56,6 +55,10 @@ datasource db {
}
```

<Note>
For Prisma versions before 6.16.0, you need to add `previewFeatures = ["driverAdapters"]` to the generator block. This preview feature was promoted to General Availability in Prisma 6.16.0 and is no longer required.
</Note>

</Step>

<Step title="Generate Prisma client">
Expand Down