import { Client , ClientConfig } from 'pg' ; export class PgClient extends Client { pg_version : number ; is_ended : boolean ; constructor ( config ? ) { super ( config ) ; this . is_ended = false ; this . on ( 'end' , ( ) => { this . is_ended = true ; } ) ; } }