SLOWLOG.d.ts 465 B

1234567891011121314151617
  1. export declare const IS_READ_ONLY = true;
  2. export declare const FIRST_KEY_INDEX = 1;
  3. export declare function transformArguments(key: string): string[];
  4. type SlowLogRawReply = Array<[
  5. timestamp: string,
  6. command: string,
  7. query: string,
  8. took: string
  9. ]>;
  10. type SlowLogReply = Array<{
  11. timestamp: Date;
  12. command: string;
  13. query: string;
  14. took: number;
  15. }>;
  16. export declare function transformReply(logs: SlowLogRawReply): SlowLogReply;
  17. export {};