10 lines
357 B
TypeScript
10 lines
357 B
TypeScript
import type { Pool } from "pg";
|
|
|
|
export function getScriptDataBackend(env?: NodeJS.ProcessEnv): "local" | "postgres";
|
|
export function createPostgresPool(options?: {
|
|
env?: NodeJS.ProcessEnv;
|
|
applicationName?: string;
|
|
}): Pool;
|
|
export function closePostgresPool(pool?: Pool): Promise<void>;
|
|
export function quotePostgresIdentifier(value: string): string;
|