| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <TableFunctions/ITableFunction.h> |
| 4 | #include <Interpreters/Context.h> |
| 5 | |
| 6 | |
| 7 | namespace DB |
| 8 | { |
| 9 | /* input(structure) - allows to make INSERT SELECT from incoming stream of data |
| 10 | */ |
| 11 | class TableFunctionInput : public ITableFunction |
| 12 | { |
| 13 | public: |
| 14 | static constexpr auto name = "input"; |
| 15 | std::string getName() const override { return name; } |
| 16 | |
| 17 | private: |
| 18 | StoragePtr executeImpl(const ASTPtr & ast_function, const Context & context, const std::string & table_name) const override; |
| 19 | }; |
| 20 | } |
| 21 |