From 0a383f5645e8d5567f55109a60ec45c0c2c8e719 Mon Sep 17 00:00:00 2001 From: Serhii Tatarintsev Date: Fri, 10 Nov 2023 14:57:04 +0100 Subject: [PATCH] driver-adapters: Use new planetscale init (#4432) See prisma/prisma#21883 DRIVER_ADAPTERS_BRANCH=fix/planetscale-client --- .../connector-test-kit-executor/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/query-engine/driver-adapters/connector-test-kit-executor/src/index.ts b/query-engine/driver-adapters/connector-test-kit-executor/src/index.ts index b89348fb3e77..2318c0525760 100644 --- a/query-engine/driver-adapters/connector-test-kit-executor/src/index.ts +++ b/query-engine/driver-adapters/connector-test-kit-executor/src/index.ts @@ -18,7 +18,7 @@ import { createClient } from '@libsql/client' import { PrismaLibSQL } from '@prisma/adapter-libsql' // planetscale dependencies -import { connect as planetscaleConnect } from '@planetscale/database' +import { Client as PlanetscaleClient } from '@planetscale/database' import { PrismaPlanetScale } from '@prisma/adapter-planetscale' @@ -276,12 +276,12 @@ async function planetscaleAdapter(url: string): Promise { throw new Error("DRIVER_ADAPTER_CONFIG is not defined or empty, but its required for planetscale adapter."); } - const connection = planetscaleConnect({ + const client = new PlanetscaleClient({ url: proxyURL, fetch, }) - return new PrismaPlanetScale(connection) + return new PrismaPlanetScale(client) } main().catch(err)