1#pragma once
2
3#include <Interpreters/IInterpreter.h>
4#include <Parsers/IAST_fwd.h>
5
6
7namespace DB
8{
9
10class Context;
11
12
13/** Return list of currently executing queries.
14 */
15class InterpreterShowProcesslistQuery : public IInterpreter
16{
17public:
18 InterpreterShowProcesslistQuery(const ASTPtr & query_ptr_, Context & context_)
19 : query_ptr(query_ptr_), context(context_) {}
20
21 BlockIO execute() override;
22
23private:
24 ASTPtr query_ptr;
25 Context & context;
26};
27
28
29}
30