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

Method Prepare

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

Source from the content-addressed store, hash-verified

161}
162
163Status Sqlite::Prepare(const StringPiece& sql, SqliteStatement* stmt) {
164 SqliteLock lock(*this);
165 sqlite3_stmt* ps = nullptr;
166 int rc = sqlite3_prepare_v2(db_, sql.data(), static_cast<int>(sql.size()),
167 &ps, nullptr);
168 if (rc != SQLITE_OK) {
169 *stmt = SqliteStatement();
170 return PrintfStatus(rc, "Prepare() failed: [%d] %s: %.*s", rc, errmsg(),
171 sql.size(), sql.data());
172 }
173 *stmt = SqliteStatement(this, ps);
174 return Status::OK();
175}
176
177Status SqliteStatement::Step(bool* is_done) {
178 DCHECK(stmt_ != nullptr);

Callers 15

SetPragmaFunction · 0.45
TEST_FFunction · 0.45
RunFunction · 0.45
SetDescriptionFunction · 0.45
LOCKS_EXCLUDEDMethod · 0.45
SaveNodeInputsMethod · 0.45
SaveNodesMethod · 0.45
SaveGraphMethod · 0.45
LOCKS_EXCLUDEDMethod · 0.45
LOCKS_EXCLUDEDMethod · 0.45
UpdateMethod · 0.45

Calls 4

SqliteStatementClass · 0.85
PrintfStatusFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.36