Skip to content
Merged
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
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ First, you need to create a Prisma schema file called schema.prisma and define t
// schema.prisma
generator client {
provider = "prisma-client-js"
previewFeatures = ["driverAdapters"]
output = "../src/generated/prisma"
engineType = "client"
}

datasource db {
Expand All @@ -63,7 +64,7 @@ Here is an example of query:
```js
// query.js
import { PrismaTiDBCloud } from '@tidbcloud/prisma-adapter';
import { PrismaClient } from '@prisma/client';
import { PrismaClient } from './generated/prisma';
import dotenv from 'dotenv';

// setup
Expand Down Expand Up @@ -94,7 +95,7 @@ Here is an example of transaction:
```js
// query.js
import { PrismaTiDBCloud } from '@tidbcloud/prisma-adapter';
import { PrismaClient } from '@prisma/client';
import { PrismaClient } from './generated/prisma';
import dotenv from 'dotenv';

// setup
Expand Down