OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ForeignStorageInterface.cpp File Reference
+ Include dependency graph for ForeignStorageInterface.cpp:

Go to the source code of this file.


std::pair< std::string,
std::string > 
parseStorageType (const std::string &type)

Function Documentation

std::pair<std::string, std::string> parseStorageType ( const std::string &  type)

Definition at line 184 of file ForeignStorageInterface.cpp.

References run_benchmark_import::res, and to_upper().

Referenced by ForeignStorageInterface::prepareTable(), and ForeignStorageInterface::registerTable().

184  {
185  size_t sep = type.find_first_of(':'), sep2 = sep != std::string::npos ? sep + 1 : sep;
186  auto res = std::make_pair(to_upper(type.substr(0, sep)), type.substr(sep2));
187  return res;
188 }
std::string to_upper(const std::string &str)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: