MCPcopy Create free account
hub / github.com/ByConity/ByConity / getStorage

Method getStorage

src/TableFunctions/TableFunctionFile.cpp:7–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace DB
6{
7StoragePtr 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
23void registerTableFunctionFile(TableFunctionFactory & factory)
24{

Callers

nothing calls this directly

Calls 3

getUserFilesPathMethod · 0.80
StorageIDClass · 0.50
createFunction · 0.50

Tested by

no test coverage detected