From 73e203e8efc9099fc1f8b4b90478ed5fcf97e29c Mon Sep 17 00:00:00 2001 From: shiyuhang <1136742008@qq.com> Date: Thu, 7 Dec 2023 14:01:03 +0800 Subject: [PATCH] support prisma 5.7.0 --- package.json | 4 ++-- pnpm-lock.yaml | 8 ++++---- src/tidbcloud.ts | 6 +----- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index a7646af..6cd0be2 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 189cd53..5b4e577 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: '@prisma/driver-adapter-utils': - specifier: 5.6.0 - version: 5.6.0 + specifier: 5.7.0 + version: 5.7.0 devDependencies: '@tidbcloud/serverless': @@ -298,8 +298,8 @@ packages: fastq: 1.15.0 dev: true - /@prisma/driver-adapter-utils@5.6.0: - resolution: {integrity: sha512-/TSrfCGLAQghNf+bwg5/e8iKAgecCYU/gMN0IyNra3183/VTQJneLFgbacuSK9bBXiIRUmpbuUIrJ6dhENzfjA==} + /@prisma/driver-adapter-utils@5.7.0: + resolution: {integrity: sha512-GNVOIRS5SEVRfvgoYmWKMtKc7FOm0LYFiDUQYjfcc/FJAiY1XpzRPLPs8q/qW7RaQ7IDKYdOKngepWCRfH0sTw==} dependencies: debug: 4.3.4 transitivePeerDependencies: diff --git a/src/tidbcloud.ts b/src/tidbcloud.ts index e39d8ee..09d7bff 100644 --- a/src/tidbcloud.ts +++ b/src/tidbcloud.ts @@ -25,7 +25,7 @@ class RollbackError extends Error { } class TiDBCloudQueryable implements Queryable { - readonly flavour = 'mysql' + readonly provider = 'mysql' constructor(protected client: ClientT) {} /** @@ -135,8 +135,4 @@ export class PrismaTiDBCloud extends TiDBCloudQueryable im const tx = await this.client.begin() return ok(new TiDBCloudTransaction(tx, options)) } - - async close() { - return ok(undefined) - } }