Skip to content

Commit

Permalink
driver-adapters: fixup remnants of renamed packages (#4261)
Browse files Browse the repository at this point in the history
Fixup things that were missed after the last and even one of the
previous renames.
  • Loading branch information
aqrln committed Sep 20, 2023
1 parent f5a416b commit d3525d1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions query-engine/driver-adapters/js/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Prisma Driver Adapters

This TypeScript monorepo contains the following packages:
- `@jkomyno/prisma-driver-adapter-utils` (later: `@prisma/driver-adapter-utils`)
- `@prisma/driver-adapter-utils`
- Internal set of utilities and types for Prisma's driver adapters.
- `@jkomyno/prisma-adapter-neon` (later: `@prisma/adapter-neon`)
- `@prisma/adapter-neon`
- Prisma's Driver Adapter that wraps the `@neondatabase/serverless` driver
- It uses `provider = "postgres"`
- It exposes debug logs via `DEBUG="prisma:driver-adapter:neon"`
- `@jkomyno/prisma-adapter-planetscale` (later: `@prisma/adapter-planetscale`)
- `@prisma/adapter-planetscale`
- Prisma's Driver Adapter that wraps the `@planetscale/database` driver
- It uses `provider = "mysql"`
- It exposes debug logs via `DEBUG="prisma:driver-adapter:planetscale"`
- `@jkomyno/prisma-adapter-pg` (later: `@prisma/adapter-pg`)
- `@prisma/adapter-pg`
- Prisma's Driver Adapter that wraps the `pg` driver
- It uses `provider = "postgres"`
- It exposes debug logs via `DEBUG="prisma:driver-adapter:pg"`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Connector } from '@jkomyno/prisma-pg-js-connector'
import type { DriverAdapter } from '@prisma/driver-adapter-utils'
import type { QueryEngineConfig } from './QueryEngine'

export type QueryEngineInstance = {
Expand All @@ -18,7 +18,7 @@ export type QueryEngineInstance = {
}

export interface QueryEngineConstructor {
new(config: QueryEngineConfig, logger: (log: string) => void, nodejsFnCtx?: Connector): QueryEngineInstance
new(config: QueryEngineConfig, logger: (log: string) => void, nodejsFnCtx?: DriverAdapter): QueryEngineInstance
}

export interface LibraryLoader {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import pgDriver from 'pg'
import * as pg from '@jkomyno/prisma-adapter-pg'
import * as pg from '@prisma/adapter-pg'
import * as qe from './qe'
import * as engines from './engines/Library'
import * as readline from 'node:readline'
import * as jsonRpc from './jsonRpc'
import {bindAdapter, ErrorCapturingDriverAdapter} from "@jkomyno/prisma-driver-adapter-utils";
import {bindAdapter, ErrorCapturingDriverAdapter} from "@prisma/driver-adapter-utils";

async function main(): Promise<void> {
const iface = readline.createInterface({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as pg from '@jkomyno/prisma-adapter-pg'
import {bindAdapter, ErrorCapturingDriverAdapter} from '@jkomyno/prisma-driver-adapter-utils'
import type { ErrorCapturingDriverAdapter } from '@prisma/driver-adapter-utils'
import * as lib from './engines/Library'
import * as os from 'node:os'
import * as path from 'node:path'
Expand Down

0 comments on commit d3525d1

Please sign in to comment.