UNPKG

@cocalc/database

Version:

CoCalc: code for working with our PostgreSQL database

12 lines (11 loc) 314 B
import { Pool } from "pg"; declare const MAX_AGE_S: { readonly short: 5; readonly medium: 15; readonly long: 30; readonly minutes: number; readonly infinite: number; }; export declare type Length = keyof typeof MAX_AGE_S; export default function getCachedPool(length: Length): Pool; export {};