| 5 | namespace DB |
| 6 | { |
| 7 | StoragePtr TableFunctionFile::getStorage(const ColumnsDescription & columns, ContextPtr global_context, const std::string & table_name) const |
| 8 | { |
| 9 | StorageFile::CommonArguments args{ |
| 10 | WithContext(global_context), |
| 11 | StorageID(getDatabaseName(), table_name), |
| 12 | arguments.format_name, |
| 13 | std::nullopt /*format settings*/, |
| 14 | arguments.compression_method, |
| 15 | columns, |
| 16 | ConstraintsDescription{}, |
| 17 | String{}, |
| 18 | }; |
| 19 | |
| 20 | return StorageFile::create(arguments.url, global_context->getUserFilesPath(), args); |
| 21 | } |
| 22 | |
| 23 | void registerTableFunctionFile(TableFunctionFactory & factory) |
| 24 | { |
nothing calls this directly
no test coverage detected