fix pg imports for node tests

This commit is contained in:
dswbx
2025-10-31 17:48:50 +01:00
parent 71a17696eb
commit dbb19a27f4
5 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
import { Kysely, PostgresDialect } from "kysely"; import { Kysely, PostgresDialect } from "kysely";
import { PostgresIntrospector } from "./PostgresIntrospector"; import { PostgresIntrospector } from "./PostgresIntrospector";
import { PostgresConnection, plugins } from "./PostgresConnection"; import { PostgresConnection, plugins } from "./PostgresConnection";
import { customIntrospector } from "bknd"; import { customIntrospector } from "../Connection";
import $pg from "pg"; import $pg from "pg";
export type PgPostgresConnectionConfig = $pg.PoolConfig; export type PgPostgresConnectionConfig = $pg.PoolConfig;

View File

@@ -5,7 +5,7 @@ import {
type SchemaResponse, type SchemaResponse,
type ConnQuery, type ConnQuery,
type ConnQueryResults, type ConnQueryResults,
} from "bknd"; } from "../Connection";
import { import {
ParseJSONResultsPlugin, ParseJSONResultsPlugin,
type ColumnDataType, type ColumnDataType,

View File

@@ -1,5 +1,5 @@
import { type SchemaMetadata, sql } from "kysely"; import { type SchemaMetadata, sql } from "kysely";
import { BaseIntrospector } from "bknd"; import { BaseIntrospector } from "../BaseIntrospector";
type PostgresSchemaSpec = { type PostgresSchemaSpec = {
name: string; name: string;

View File

@@ -1,7 +1,7 @@
import { Kysely } from "kysely"; import { Kysely } from "kysely";
import { PostgresIntrospector } from "./PostgresIntrospector"; import { PostgresIntrospector } from "./PostgresIntrospector";
import { PostgresConnection, plugins } from "./PostgresConnection"; import { PostgresConnection, plugins } from "./PostgresConnection";
import { customIntrospector } from "bknd"; import { customIntrospector } from "../Connection";
import { PostgresJSDialect } from "kysely-postgres-js"; import { PostgresJSDialect } from "kysely-postgres-js";
import $postgresJs, { type Sql, type Options, type PostgresType } from "postgres"; import $postgresJs, { type Sql, type Options, type PostgresType } from "postgres";

View File

@@ -1,4 +1,4 @@
import { customIntrospector, type DbFunctions } from "bknd"; import { customIntrospector, type DbFunctions } from "../Connection";
import { Kysely, type Dialect, type KyselyPlugin } from "kysely"; import { Kysely, type Dialect, type KyselyPlugin } from "kysely";
import { plugins, PostgresConnection } from "./PostgresConnection"; import { plugins, PostgresConnection } from "./PostgresConnection";
import { PostgresIntrospector } from "./PostgresIntrospector"; import { PostgresIntrospector } from "./PostgresIntrospector";