MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetEnv

Function GetEnv

tensorflow/core/lib/db/sqlite.cc:99–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99const StringPiece GetEnv(const char* var) {
100 const char* val = std::getenv(var);
101 return (val == nullptr) ? StringPiece() : StringPiece(val);
102}
103
104Status EnvPragma(Sqlite* db, const char* pragma, const char* var) {
105 TF_RETURN_WITH_CONTEXT_IF_ERROR(SetPragma(db, pragma, GetEnv(var)), "getenv(",

Callers 5

EnvPragmaFunction · 0.85
AddBatchMethod · 0.85
CallbackWrapperMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected