#include <OnlineDBqueryHelper.h>
|
static std::map< std::string, std::string > | fetch (const std::vector< std::string > &queryColumns, const std::string &table, const std::string &key, l1t::OMDSReader &m_omdsReader) |
|
Definition at line 16 of file OnlineDBqueryHelper.h.
std::map< std::string, std::string > l1t::OnlineDBqueryHelper::fetch |
( |
const std::vector< std::string > & |
queryColumns, |
|
|
const std::string & |
table, |
|
|
const std::string & |
key, |
|
|
l1t::OMDSReader & |
m_omdsReader |
|
) |
| |
|
static |
Definition at line 3 of file OnlineDBqueryHelper.cc.
References a, b, l1t::OMDSReader::basicQuery(), l1t::OMDSReader::QueryResults::fillVariable(), mps_fire::i, GetRecoTauVFromDQM_MC_cff::next, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), l1t::OMDSReader::singleAttribute(), AlCaHLTBitMon_QueryRunRegistry::string, and create_public_lumi_plots::transform.
Referenced by L1TMuonGlobalParamsOnlineProd::newObject(), L1TMuonEndcapParamsOnlineProd::newObject(), L1TMuonBarrelParamsOnlineProd::newObject(), L1TCaloParamsOnlineProd::newObject(), and L1TGlobalPrescalesVetosOnlineProd::newObject().
9 if( queryColumns.size() == 0 || table.length() == 0 )
10 return std::map<std::string,std::string>();
21 throw std::runtime_error(
std::string(
"Cannot get ") +
24 std::accumulate(
std::next( queryColumns.begin() ),
33 std::vector<std::string> retval( queryColumns.size() );
46 std::map<std::string,std::string> retvalMap;
47 for(
unsigned int i=0;
i<queryColumns.size();
i++)
48 retvalMap.insert( make_pair( queryColumns[
i], retval[i] ) );
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
const QueryResults basicQuery(const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")