Spaces:
Sleeping
Sleeping
| import { entityKind } from "../entity.js"; | |
| import { PgDatabase } from "../pg-core/db.js"; | |
| import { PgDialect } from "../pg-core/dialect.js"; | |
| import type { DrizzleConfig } from "../utils.js"; | |
| import { type PgRemoteQueryResultHKT } from "./session.js"; | |
| export declare class PgRemoteDatabase<TSchema extends Record<string, unknown> = Record<string, never>> extends PgDatabase<PgRemoteQueryResultHKT, TSchema> { | |
| static readonly [entityKind]: string; | |
| } | |
| export type RemoteCallback = (sql: string, params: any[], method: 'all' | 'execute', typings?: any[]) => Promise<{ | |
| rows: any[]; | |
| }>; | |
| export declare function drizzle<TSchema extends Record<string, unknown> = Record<string, never>>(callback: RemoteCallback, config?: DrizzleConfig<TSchema>, _dialect?: () => PgDialect): PgRemoteDatabase<TSchema>; | |