MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / executeStatement

Method executeStatement

src/openms/source/FORMAT/SqliteConnector.cpp:107–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 void SqliteConnector::executeStatement(sqlite3 *db, const String& statement)
108 {
109 char *zErrMsg = nullptr;
110 int rc = sqlite3_exec(db, statement.c_str(), nullptr /* callback */, nullptr, &zErrMsg);
111 if (rc != SQLITE_OK)
112 {
113 String error(zErrMsg);
114 std::cerr << "Error message after sqlite3_exec" << std::endl;
115 std::cerr << "Prepared statement " << statement << std::endl;
116 sqlite3_free(zErrMsg);
117 throw Exception::IllegalArgument(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, error);
118 }
119 }
120
121 void SqliteConnector::prepareStatement(sqlite3 *db, sqlite3_stmt** stmt, const String& prepare_statement)
122 {

Callers 9

writePQPOutput_Method · 0.80
writeHeaderMethod · 0.80
writeLinesMethod · 0.80
writeFromPercolatorMethod · 0.80
createTablesMethod · 0.80
createIndices_Method · 0.80
writeSpectraMethod · 0.80
writeChromatogramsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected