mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
d93b9a57f6
Now after changing Context.h 488 modules will be recompiled instead of 582.
24 lines
887 B
C++
24 lines
887 B
C++
#include <Storages/StorageFile.h>
|
|
#include <Storages/ColumnsDescription.h>
|
|
#include <Access/AccessFlags.h>
|
|
#include <TableFunctions/TableFunctionFactory.h>
|
|
#include <TableFunctions/TableFunctionFile.h>
|
|
#include <Interpreters/Context.h>
|
|
#include "registerTableFunctions.h"
|
|
|
|
namespace DB
|
|
{
|
|
StoragePtr TableFunctionFile::getStorage(
|
|
const String & source, const String & format, const ColumnsDescription & columns, Context & global_context, const std::string & table_name, const std::string & compression_method) const
|
|
{
|
|
StorageFile::CommonArguments args{StorageID(getDatabaseName(), table_name), format, compression_method, columns, ConstraintsDescription{}, global_context};
|
|
|
|
return StorageFile::create(source, global_context.getUserFilesPath(), args);
|
|
}
|
|
|
|
void registerTableFunctionFile(TableFunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<TableFunctionFile>();
|
|
}
|
|
}
|