/** * Database connection utilities for read-only Postgres access */ import pg from 'pg'; /** * Creates and returns a read-only Postgres connection pool * @throws {Error} If DATABASE_URL is not set or connection fails */ export declare function getReadOnlyPool(): pg.Pool; /** * Tests the database connection * @throws {Error} If connection test fails */ export declare function testConnection(): Promise; /** * Gracefully closes the database connection pool */ export declare function closePool(): Promise; /** * Validates that a schema and table name are safe to use in queries * This helps prevent SQL injection even though we use parameterized queries */ export declare function validateIdentifier(identifier: string): boolean; /** * Helper to execute a query with error handling */ export declare function executeQuery(query: string, params?: any[]): Promise>; //# sourceMappingURL=db.d.ts.map