codigo0/backend/dist/config/database.d.ts
planetazuzu 0201f16cf4
Some checks are pending
Auto Deploy to Server / deploy (push) Waiting to run
Update lab configuration 2026-03-22
2026-03-22 22:50:29 +01:00

26 lines
652 B
TypeScript
Executable file

/**
* Configuración de conexión a PostgreSQL
*
* FASE 1: Infraestructura Base
*
* IMPORTANTE: Usar variables de entorno para credenciales
*/
import pg from 'pg';
/**
* Pool de conexiones a PostgreSQL
*/
export declare const pool: pg.Pool;
/**
* Test de conexión
*/
export declare function testConnection(): Promise<boolean>;
/**
* Función helper para ejecutar queries
* Envuelve pool.query para mantener compatibilidad
*/
export declare function query(text: string, params?: any[]): Promise<pg.QueryResult>;
/**
* Cerrar pool de conexiones
*/
export declare function closePool(): Promise<void>;
//# sourceMappingURL=database.d.ts.map