#include #include #include #include #include #include #include "registerTableFunctions.h" namespace DB { StoragePtr TableFunctionURL::getStorage( const String & source, const String & format, const ColumnsDescription & columns, Context & global_context, const std::string & table_name, const String & compression_method) const { Poco::URI uri(source); return StorageURL::create(uri, StorageID(getDatabaseName(), table_name), format, columns, ConstraintsDescription{}, global_context, compression_method); } AccessType TableFunctionURL::getRequiredAccessType() const { return AccessType::url; } void registerTableFunctionURL(TableFunctionFactory & factory) { factory.registerFunction(); } }