UNPKG

635 BTypeScriptView Raw
1import { IModulePatcher } from "diagnostic-channel";
2export interface IPostgresResult {
3 rowCount: number;
4 command: string;
5}
6export interface IPostgresData {
7 query: {
8 text?: string;
9 plan?: string;
10 preparable?: {
11 text: string;
12 args: any[];
13 };
14 };
15 database: {
16 host: string;
17 port: string;
18 };
19 result?: IPostgresResult;
20 duration: number;
21 error?: Error;
22 time: Date;
23}
24export declare const postgres6: IModulePatcher;
25export declare const postgres7: IModulePatcher;
26export declare function enable(): void;