diagnostic-channel-publishers
Version:
A collection of pre-built module patches that enable existing npm modules to publish diagnostic data
27 lines (26 loc) • 634 B
TypeScript
import { IModulePatcher } from "diagnostic-channel";
export interface IPostgresResult {
rowCount: number;
command: string;
}
export interface IPostgresData {
query: {
text?: string;
plan?: string;
preparable?: {
text: string;
args: any[];
};
};
database: {
host: string;
port: string;
};
result?: IPostgresResult;
duration: number;
error?: Error;
time: Date;
}
export declare const postgres6: IModulePatcher;
export declare const postgres: IModulePatcher;
export declare function enable(): void;