MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / exec

Method exec

isis/src/database/objs/SqlQuery/SqlQuery.cpp:112–119  ·  view source on GitHub ↗

* @brief Execute an SQL query provided in the query string * * This method executes the given query in the string. This method assumes this * query object has a valid and open Database connection associated with it. It * will also check the result for valid completion and toss an iException if the * caller has established this course of action when it fails. * * Results are

Source from the content-addressed store, hash-verified

110 * iException is thrown if it fails.
111 */
112 bool SqlQuery::exec(const std::string &query) {
113 bool ok = this->QSqlQuery::exec(IString::ToQt(query));
114 if((!ok) && isThrowing()) {
115 string mess = "Query \'" + query + "\' failed to execute";
116 tossQueryError(mess, _FILEINFO_);
117 }
118 return (ok);
119 }
120
121 /**
122 * @brief Returns the executed query string

Callers 15

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
GetAttributesMethod · 0.45
ExecMethod · 0.45
GetAttributesMethod · 0.45
addPhoModelFunction · 0.45
executeQueryMethod · 0.45
deleteFromCubeMethod · 0.45
saveStretchToCubeMethod · 0.45
printMethod · 0.45
saveAsTextMethod · 0.45

Calls

no outgoing calls

Tested by 5

mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
selectCurvesToPlotMethod · 0.36
TESTFunction · 0.36