11 #include "TObjString.h"
19 typedef std::map<TString,TString>
dbFields;
34 Bool_t
Lookup(
const TString field);
37 Bool_t
GetVal(
const TString field, TString &val);
40 Bool_t
SetVal(
const TString field, TString val);
41 Bool_t
SetVal(
const TString field, Long_t val);
42 Bool_t
SetVal(
const TString field, Double_t val);
85 Bool_t
Lookup(
const TString field);
100 Bool_t
Open(
const char *dbnm,
const char *tbl);
105 void MakeClass(TString cname,TString option=
"");
118 static void SetUser(TString u, TString p);
120 Bool_t
Open(
const TString *DbUrl=NULL);
137 static TSQLServer *
db;
Bool_t Open(const char *dbnm, const char *tbl)
Bool_t UpdateRunRow(HarpoDBRow row, const TString option="")
Bool_t GetRunRow(Long_t nrun, HarpoDBRow &row)
Query Table for given run information.
static void SetUser(TString u, TString p)
Bool_t Lookup(const TString field)
Lookup filed exist.
Bool_t Open(const TString *DbUrl=NULL)
static const char * GetDBName()
std::list< dbFields > dbResults
TList * GetListOfTables()
Long_t GetNrun()
Get method for run number of this record.
static TSQLServer * GetDBServer()
Bool_t GetTable(const TString name, HarpoDBTable *table)
Bool_t InsertRunRow(HarpoDBRow row, const TString option="")
Bool_t SetVal(const TString field, TString val)
Bool_t DeleteRun(Long_t run)
Delete run from table.
Bool_t Lookup(const TString field)
Lookup filed exist.
Bool_t GetVal(const TString field, TString &val)
Return value of existing field in Tstring.
Bool_t TypeExpression(const TString field)
Mark filed as expression for insert and update.
dbFields & GetFiledsTypes()
Harpo Database access class. The class query MySQL database. Deal with (single !) Harpo Database and ...
Bool_t ExecQuery(const TString sql, dbResults *list=NULL)
void Erase(const TString &field)
static void SetDBUrl(const TString &DbUrl)
void Erase(const TString &field)
void list()
list all fields with values
std::map< TString, TString > dbFields
Bool_t GetType(const TString field, TString &type)
Return Type of field in TString.
void SetFields(dbFields f)
void MakeClass(TString cname, TString option="")