Skip to content

Commit

Permalink
fix(driver-adapters): remove temporary workaround, as PlanetScale 1.1…
Browse files Browse the repository at this point in the history
…4.0 is out already (#4662)
  • Loading branch information
jkomyno authored Jan 22, 2024
1 parent 53daea5 commit c71605d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 96 deletions.
2 changes: 1 addition & 1 deletion query-engine/driver-adapters/executor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"@libsql/client": "0.3.6",
"@neondatabase/serverless": "0.7.2",
"@planetscale/database": "1.13.0",
"@planetscale/database": "1.14.0",
"query-engine-wasm-latest": "npm:@prisma/query-engine-wasm@latest",
"query-engine-wasm-baseline": "npm:@prisma/[email protected]",
"@prisma/adapter-libsql": "workspace:*",
Expand Down
90 changes: 0 additions & 90 deletions query-engine/driver-adapters/executor/src/planetscale/sanitize.ts

This file was deleted.

5 changes: 0 additions & 5 deletions query-engine/driver-adapters/executor/src/testd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import { PrismaLibSQL } from '@prisma/adapter-libsql'
// planetscale dependencies
import { Client as PlanetscaleClient } from '@planetscale/database'
import { PrismaPlanetScale } from '@prisma/adapter-planetscale'
import { format as formatPlanetScaleQuery } from './planetscale/sanitize'



import {bindAdapter, DriverAdapter, ErrorCapturingDriverAdapter} from "@prisma/driver-adapter-utils";
Expand Down Expand Up @@ -297,9 +295,6 @@ async function planetscaleAdapter(url: string): Promise<DriverAdapter> {
// preserving path name so proxy url would look like real DB url
url: copyPathName(url, proxyUrl),
fetch,

// TODO: remove once https://github.com/planetscale/database-js/pull/159 is published upstream.
format: formatPlanetScaleQuery,
})

return new PrismaPlanetScale(client)
Expand Down

0 comments on commit c71605d

Please sign in to comment.