| 29 | namespace spanner = ::google::cloud::spanner; |
| 30 | |
| 31 | std::string GetEnv(char const* var) { |
| 32 | auto const* value = std::getenv(var); |
| 33 | if (value == nullptr) { |
| 34 | throw std::runtime_error("Environment variable " + std::string(var) + |
| 35 | " is not set"); |
| 36 | } |
| 37 | return value; |
| 38 | } |
| 39 | |
| 40 | using GetField = std::function<spanner::Value(nlohmann::json const&)>; |
| 41 |
no outgoing calls
no test coverage detected