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

Function getEnv

programs/docker-init/docker-init.cpp:61–65  ·  view source on GitHub ↗

Get an environment variable value, returning default_value if not set.

Source from the content-addressed store, hash-verified

59
60/// Get an environment variable value, returning default_value if not set.
61std::string getEnv(const char * name, const std::string & default_value = "")
62{
63 const char * val = std::getenv(name); // NOLINT(concurrency-mt-unsafe)
64 return val ? std::string(val) : default_value;
65}
66
67/// Build an execvp-compatible argv array from a vector of strings.
68std::vector<char *> buildArgv(const std::vector<std::string> & args)

Callers 3

getRawMethod · 0.85
initClickHouseDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected