blob: a47617fd17f69099d81c4b24e52556092f2dabff (
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 <Databases/IDatabase.h>
#include <Interpreters/IInterpreter.h>
#include <Parsers/ASTUndropQuery.h>
namespace DB
{
class Context;
using DatabaseAndTable = std::pair<DatabasePtr, StoragePtr>;
class AccessRightsElements;
class InterpreterUndropQuery : public IInterpreter, WithMutableContext
{
public:
InterpreterUndropQuery(const ASTPtr & query_ptr_, ContextMutablePtr context_);
/// Undrop table.
BlockIO execute() override;
private:
AccessRightsElements getRequiredAccessForDDLOnCluster() const;
ASTPtr query_ptr;
BlockIO executeToTable(ASTUndropQuery & query);
};
}
|