1 | import { IModulePatcher } from "diagnostic-channel";
|
2 | export interface IPostgresResult {
|
3 | rowCount: number;
|
4 | command: string;
|
5 | }
|
6 | export 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 | }
|
24 | export declare const postgres6: IModulePatcher;
|
25 | export declare const postgres7: IModulePatcher;
|
26 | export declare function enable(): void;
|