20   printf(
"Server info: %s\n", 
db->ServerInfo());
 
   26   printf(
"\nList all databases on server %s\n", 
db->GetHost());
 
   27   res = 
db->GetDataBases();
 
   28   while ((row = res->
Next())) {
 
   35   printf(
"\nList all tables in database \"test\" on server %s\n",
 
   37   res = 
db->GetTables(
"test");
 
   38   while ((row = res->
Next())) {
 
   45   printf(
"\nList all columns in table \"runcatalog\" in database \"test\" on server %s\n",
 
   47   res = 
db->GetColumns(
"test", 
"runcatalog");
 
   48   while ((row = res->
Next())) {
 
   59   const char *
sql = 
"select dataset,rawfilepath from test.runcatalog " 
   60                     "WHERE tag&(1<<2) AND (run=490001 OR run=300122)";
 
   70   for (
int i = 0; i < 
nfields; i++)
 
   73   for (
int i = 0; i < 
nfields*40; i++)
 
   77   for (
int i = 0; i < 
nrows; i++) {
 
double Double_t
Double 8 bytes.
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
virtual const char * GetFieldName(Int_t field)=0
 
virtual Int_t GetRowCount() const
 
virtual TSQLRow * Next()=0
 
virtual Int_t GetFieldCount()=0
 
virtual const char * GetField(Int_t field)=0
 
static TSQLServer * Connect(const char *db, const char *uid, const char *pw)
The db should be of the form: <dbms>://<host>[:<port>][/<database>], e.g.: mysql://pcroot....