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

Function SetDescription

tensorflow/core/summary/summary_db_writer.cc:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139Status SetDescription(Sqlite* db, int64 id, const StringPiece& markdown) {
140 const char* sql = R"sql(
141 INSERT OR REPLACE INTO Descriptions (id, description) VALUES (?, ?)
142 )sql";
143 SqliteStatement insert_desc;
144 TF_RETURN_IF_ERROR(db->Prepare(sql, &insert_desc));
145 insert_desc.BindInt(1, id);
146 insert_desc.BindText(2, markdown);
147 return insert_desc.StepAndReset();
148}
149
150/// \brief Generates unique IDs randomly in the [1,2**63-1] range.
151///

Callers 1

LOCKS_EXCLUDEDMethod · 0.85

Calls 4

BindIntMethod · 0.80
BindTextMethod · 0.80
StepAndResetMethod · 0.80
PrepareMethod · 0.45

Tested by

no test coverage detected