MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / toProgressOption

Function toProgressOption

src/Client/ClientBase.cpp:252–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250class ClientEmbedded;
251
252ProgressOption toProgressOption(std::string progress)
253{
254 boost::to_upper(progress);
255
256 if (progress == "OFF" || progress == "FALSE" || progress == "0" || progress == "NO")
257 return ProgressOption::OFF;
258 if (progress == "TTY" || progress == "ON" || progress == "TRUE" || progress == "1" || progress == "YES")
259 return ProgressOption::TTY;
260 if (progress == "ERR")
261 return ProgressOption::ERR;
262 if (progress == "DEFAULT")
263 return ProgressOption::DEFAULT;
264
265 throw boost::program_options::validation_error(boost::program_options::validation_error::invalid_option_value);
266}
267
268std::istream& operator>> (std::istream & in, ProgressOption & progress)
269{

Callers 4

mainMethod · 0.85
mainMethod · 0.85
runMethod · 0.85
ClientBase.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected