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

Method prepareQueryMetaInfo_

src/openms/source/FORMAT/OMSFileLoad.cpp:202–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201
202 bool OMSFileLoad::prepareQueryMetaInfo_(SQLite::Statement& query,
203 const String& parent_table)
204 {
205 String table_name = parent_table + "_MetaInfo";
206 if (!db_->tableExists(table_name)) return false;
207
208 String sql_select =
209 "SELECT * FROM " + table_name.toQString() + " AS MI " \
210 "WHERE MI.parent_id = :id";
211
212 if (version_number_ < 4)
213 {
214 sql_select =
215 "SELECT * FROM " + table_name.toQString() + " AS MI " \
216 "JOIN DataValue AS DV ON MI.data_value_id = DV.id " \
217 "WHERE MI.parent_id = :id";
218 }
219 query = SQLite::Statement(*db_, sql_select);
220 return true;
221 }
222
223
224 bool OMSFileLoad::prepareQueryAppliedProcessingStep_(SQLite::Statement& query,

Callers

nothing calls this directly

Calls 3

StatementClass · 0.85
tableExistsMethod · 0.80
toQStringMethod · 0.45

Tested by

no test coverage detected