MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / execStatement

Function execStatement

src/loggers/bt_sqlite_logger.cpp:46–54  ·  view source on GitHub ↗

Helper function to execute a prepared statement

Source from the content-addressed store, hash-verified

44
45// Helper function to execute a prepared statement
46void execStatement(sqlite3_stmt* stmt)
47{
48 const int rc = sqlite3_step(stmt);
49 if(rc != SQLITE_DONE && rc != SQLITE_ROW)
50 {
51 throw RuntimeError(std::string("Failed to execute statement: ") + std::to_string(rc));
52 }
53 sqlite3_finalize(stmt);
54}
55
56} // namespace
57

Callers 2

SqliteLoggerMethod · 0.85
writerLoopMethod · 0.85

Calls 3

RuntimeErrorClass · 0.85
stringFunction · 0.85
to_stringFunction · 0.50

Tested by

no test coverage detected