interface PostgresClientType {
    connect: (() => Promise<PostgresClientType>);
    end: (() => Promise<void>);
    off?: ((event: "notification", listener: ((notification: PostgresNotification) => void)) => void);
    on?: ((event: "notification", listener: ((notification: PostgresNotification) => void)) => void);
    query: ((text: string, values?: any[]) => Promise<PostgresQueryResultType>);
    removeAllListeners?: ((event?: string) => void);
}

Properties

connect: (() => Promise<PostgresClientType>)
end: (() => Promise<void>)
off?: ((event: "notification", listener: ((notification: PostgresNotification) => void)) => void)
on?: ((event: "notification", listener: ((notification: PostgresNotification) => void)) => void)
query: ((text: string, values?: any[]) => Promise<PostgresQueryResultType>)
removeAllListeners?: ((event?: string) => void)