Skip to content

Commit

Permalink
Support prisma 5.7.0 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 authored Dec 7, 2023
1 parent 5ad3ed9 commit f7c5fab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tidbcloud/prisma-adapter",
"version": "5.6.0",
"version": "5.7.0",
"description": "Prisma's driver adapter for \"@tidbcloud/serverless\"",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -32,7 +32,7 @@
"license": "Apache-2.0",
"sideEffects": false,
"dependencies": {
"@prisma/driver-adapter-utils": "5.6.0"
"@prisma/driver-adapter-utils": "5.7.0"
},
"devDependencies": {
"@tidbcloud/serverless": "^0.0.7",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/tidbcloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class RollbackError extends Error {
}

class TiDBCloudQueryable<ClientT extends TiDBCloud.Connection | TiDBCloud.Tx> implements Queryable {
readonly flavour = 'mysql'
readonly provider = 'mysql'
constructor(protected client: ClientT) {}

/**
Expand Down Expand Up @@ -135,8 +135,4 @@ export class PrismaTiDBCloud extends TiDBCloudQueryable<TiDBCloud.Connection> im
const tx = await this.client.begin()
return ok(new TiDBCloudTransaction(tx, options))
}

async close() {
return ok(undefined)
}
}

0 comments on commit f7c5fab

Please sign in to comment.