#pragma once #include #include namespace DB { /** Change default database for session. */ class InterpreterUseQuery : public IInterpreter, WithContext { public: InterpreterUseQuery(const ASTPtr & query_ptr_, ContextPtr context_) : WithContext(context_), query_ptr(query_ptr_) {} BlockIO execute() override; private: ASTPtr query_ptr; }; }