mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
26 lines
668 B
C++
26 lines
668 B
C++
#pragma once
|
|
|
|
#include <TableFunctions/ITableFunctionFileLike.h>
|
|
#include <Interpreters/Context.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
/* 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;
|
|
AccessType getRequiredAccessType() const override;
|
|
};
|
|
}
|