OmniSciDB  85c2d10cdc
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 177 of file ForeignStorageInterface.cpp.

References run_benchmark_import::res, and to_upper().

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

177  {
178  size_t sep = type.find_first_of(':'), sep2 = sep != std::string::npos ? sep + 1 : sep;
179  auto res = std::make_pair(to_upper(type.substr(0, sep)), type.substr(sep2));
180  return res;
181 }
std::string to_upper(const std::string &str)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: