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

Method BindText

tensorflow/core/lib/db/sqlite.h:231–236  ·  view source on GitHub ↗

\brief Copies UTF-8 text to 1-indexed query parameter. If NUL characters are present, they will still go in the DB and be successfully retrieved by ColumnString(); however, the behavior of these values with SQLite functions is undefined. When using the unsafe methods, the data must not be changed or freed until this statement is Reset() or finalized.

Source from the content-addressed store, hash-verified

229 /// When using the unsafe methods, the data must not be changed or
230 /// freed until this statement is Reset() or finalized.
231 void BindText(int parameter, const StringPiece& text) {
232 Update(sqlite3_bind_text64(stmt_, parameter, text.data(), text.size(),
233 SQLITE_TRANSIENT, SQLITE_UTF8),
234 parameter);
235 size_ += text.size();
236 }
237 void BindText(const char* parameter, const StringPiece& text) {
238 BindText(GetParameterIndex(parameter), text);
239 }

Callers 5

TEST_FFunction · 0.80
SetDescriptionFunction · 0.80
SaveNodesMethod · 0.80
UpdateMethod · 0.80

Calls 3

UpdateFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.64