mysql2.d.ts 652 B

123456789101112131415161718192021
  1. import { BasePlugin, Span } from '@opencensus/core';
  2. export declare type Mysql2PluginConfig = {
  3. detailedCommands: boolean;
  4. };
  5. export declare class Mysql2Plugin extends BasePlugin {
  6. protected options: Mysql2PluginConfig;
  7. protected readonly internalFileList: {
  8. '1 - 3': {
  9. 'Connection': string;
  10. 'Pool': string;
  11. };
  12. };
  13. constructor(moduleName: string);
  14. protected applyPatch(): any;
  15. applyUnpatch(): void;
  16. private getPatchCreateQuery;
  17. private getPatchGetConnection;
  18. patchEnd(span: Span, resultHandler: Function): Function;
  19. }
  20. declare const plugin: Mysql2Plugin;
  21. export { plugin };