mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
23 lines
739 B
C++
23 lines
739 B
C++
#pragma once
|
|
|
|
#include <TableFunctions/ITableFunction.h>
|
|
#include <Interpreters/Context.h>
|
|
|
|
namespace DB
|
|
{
|
|
enum class AccessType;
|
|
class ColumnsDescription;
|
|
|
|
/*
|
|
* function(source, format, structure) - creates a temporary storage from formated source
|
|
*/
|
|
class ITableFunctionFileLike : public ITableFunction
|
|
{
|
|
private:
|
|
StoragePtr executeImpl(const ASTPtr & ast_function, const Context & context, const std::string & table_name) const override;
|
|
virtual StoragePtr getStorage(
|
|
const String & source, const String & format, const ColumnsDescription & columns, Context & global_context, const std::string & table_name, const String & compression_method) const = 0;
|
|
virtual AccessType getRequiredAccessType() const = 0;
|
|
};
|
|
}
|