blob: da622de7fc6aa5e9e7699ee107c2fe75ddc5a512 (
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
|
#pragma once
#include <Interpreters/IInterpreter.h>
#include <Parsers/IAST_fwd.h>
namespace DB
{
/** Return single row with single column "statement" of type String with text of query to CREATE specified table.
*/
class InterpreterShowCreateQuery : public IInterpreter, WithContext
{
public:
InterpreterShowCreateQuery(const ASTPtr & query_ptr_, ContextPtr context_) : WithContext(context_), query_ptr(query_ptr_) {}
BlockIO execute() override;
static Block getSampleBlock();
private:
ASTPtr query_ptr;
QueryPipeline executeImpl();
};
}
|