22 std::cout <<
"Query Ok." << std::endl;
24 std::cout <<
"Bad SELET QUERY" << std::endl;
30 if (db->
ExecQuery(
"SELECT `run`,`IwLaser` FROM `NSBeam` WHERE `Palarisation` = 100;",&run_list) ) {
33 std::cout <<
"Bad SELET QUERY" << std::endl;
35 for(dbResults::iterator il=run_list.begin();il !=run_list.end();++il){
36 std::cout <<
" ======================" << std::endl;
37 for(dbFields::iterator im=il->begin();im != il->end();++im){
38 std::cout << im->first <<
" = " << im->second << std::endl;
Bool_t Open(const TString *DbUrl=NULL)
std::list< dbFields > dbResults
Harpo Database access class. The class query MySQL database. Deal with (single !) Harpo Database and ...
Bool_t ExecQuery(const TString sql, dbResults *list=NULL)