diagnostic-channel-publishers
Version: 
A collection of pre-built module patches that enable existing npm modules to publish diagnostic data
25 lines (24 loc) • 558 B
TypeScript
import { IModulePatcher } from "diagnostic-channel";
export interface ITediousResult {
    rowCount: number;
    rows: any;
}
export interface ITediousData {
    query: {
        text?: string;
        plan?: string;
        preparable?: {
            text: string;
            args: any[];
        };
    };
    database: {
        host: string;
        port: string;
    };
    result?: ITediousResult;
    duration: number;
    error?: Error;
}
export declare const tedious: IModulePatcher;
export declare function enable(): void;