mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-17 14:00:51 +00:00
d93b9a57f6
Now after changing Context.h 488 modules will be recompiled instead of 582.
29 lines
668 B
C++
29 lines
668 B
C++
#pragma once
|
|
|
|
#include <TableFunctions/ITableFunctionFileLike.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
/* url(source, format, structure) - creates a temporary storage from url
|
|
*/
|
|
class TableFunctionURL : public ITableFunctionFileLike
|
|
{
|
|
public:
|
|
static constexpr auto name = "url";
|
|
std::string getName() const override
|
|
{
|
|
return name;
|
|
}
|
|
|
|
private:
|
|
StoragePtr getStorage(
|
|
const String & source, const String & format, const ColumnsDescription & columns, Context & global_context, const std::string & table_name, const String & compression_method) const override;
|
|
const char * getStorageTypeName() const override { return "URL"; }
|
|
};
|
|
|
|
}
|