/opt/canhelp/node_modules/drizzle-orm/postgres-js
Edit: /opt/canhelp/node_modules/drizzle-orm/postgres-js/driver.d.ts (1199B)
import { type Options, type PostgresType, type Sql } from 'postgres';
import { entityKind } from "../entity.js";
import { PgDatabase } from "../pg-core/db.js";
import { type DrizzleConfig } from "../utils.js";
import type { PostgresJsQueryResultHKT } from "./session.js";
export declare class PostgresJsDatabase
= Record> extends PgDatabase {
static readonly [entityKind]: string;
}
export declare function drizzle = Record, TClient extends Sql = Sql>(...params: [
TClient | string
] | [
TClient | string,
DrizzleConfig
] | [
(DrizzleConfig & ({
connection: string | ({
url?: string;
} & Options>);
} | {
client: TClient;
}))
]): PostgresJsDatabase & {
$client: TClient;
};
export declare namespace drizzle {
function mock = Record>(config?: DrizzleConfig): PostgresJsDatabase & {
$client: '$client is not available on drizzle.mock()';
};
}