ClickHouse/dbms/TableFunctions/ITableFunctionFileLike.h
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

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;
};
}