1#pragma once
2
3#include <TableFunctions/ITableFunctionFileLike.h>
4#include <Interpreters/Context.h>
5
6
7namespace DB
8{
9/* url(source, format, structure) - creates a temporary storage from url
10 */
11class TableFunctionURL : public ITableFunctionFileLike
12{
13public:
14 static constexpr auto name = "url";
15 std::string getName() const override
16 {
17 return name;
18 }
19
20private:
21 StoragePtr getStorage(
22 const String & source, const String & format, const ColumnsDescription & columns, Context & global_context, const std::string & table_name, const String & compression_method) const override;
23};
24}
25