blob: 932700e51b5cf6d1cad49539d4f303a026fefe45 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include <Interpreters/IInterpreter.h>
#include <Parsers/IAST_fwd.h>
namespace DB
{
class AccessRightsElements;
/** Just call method "optimize" for table.
*/
class InterpreterOptimizeQuery : public IInterpreter, WithContext
{
public:
InterpreterOptimizeQuery(const ASTPtr & query_ptr_, ContextPtr context_) : WithContext(context_), query_ptr(query_ptr_) {}
BlockIO execute() override;
bool supportsTransactions() const override { return true; }
private:
AccessRightsElements getRequiredAccess() const;
ASTPtr query_ptr;
};
}
|