99      SetError(-1, 
"protocol in db argument should be mysql://", 
"TMySQLServer");
 
  119      while ((obj = next()) != 0) {
 
  132         if (opt.
Contains(
"read_timeout=")) {
 
  133           #if MYSQL_VERSION_ID >= 40101 
  142            Warning(
"TMySQLServer",
"MYSQL_OPT_READ_TIMEOUT option not supported by this version of MySql");
 
  146         if (opt.
Contains(
"write_timeout=")) {
 
  147           #if MYSQL_VERSION_ID >= 40101 
  156            Warning(
"TMySQLServer",
"MYSQL_OPT_WRITE_TIMEOUT option not supported by this version of MySql");
 
  160           #if MYSQL_VERSION_ID >= 50013 
  166            Warning(
"TMySQLServer",
"MYSQL_OPT_RECONNECT option not supported by this version of MySql");
 
  173         if (opt.
Contains(
"multi_statements")) {
 
  174           #if MYSQL_VERSION_ID >= 40100 
  176            if (
gDebug) 
Info(
"TMySQLServer",
"Use CLIENT_MULTI_STATEMENTS");
 
  178            Warning(
"TMySQLServer",
"CLIENT_MULTI_STATEMENTS not supported by this version of MySql");
 
  181         if (opt.
Contains(
"multi_results")) {
 
  182           #if MYSQL_VERSION_ID >= 40100 
  184            if (
gDebug) 
Info(
"TMySQLServer",
"Use CLIENT_MULTI_RESULTS");
 
  186            Warning(
"TMySQLServer",
"CLIENT_MULTI_RESULTS not supported by this version of MySql");
 
  191            if (
gDebug) 
Info(
"TMySQLServer",
"Use compressed client/server protocol");
 
  201            if (
gDebug) 
Info(
"TMySQLServer",
"Read mysql options from %s group of my.cnf file", 
groupname);
 
  209   if (
url.GetPort()>0) port = 
url.GetPort();
 
 
  234#define CheckConnect(method, res)                       \ 
  237      if (!IsConnected()) {                             \ 
  238         SetError(-1,"MySQL server is not connected",method); \ 
 
  245#define CheckErrNo(method, force, res)                  \ 
  247      unsigned int sqlerrno = mysql_errno(fMySQL);         \ 
  248      if ((sqlerrno!=0) || force) {                        \ 
  249         const char* sqlerrmsg = mysql_error(fMySQL);      \ 
  250         if (sqlerrno==0) { sqlerrno = 11111; sqlerrmsg = "MySQL error"; } \ 
  251         SetError(sqlerrno, sqlerrmsg, method);               \ 
 
  427   while ((row = 
showres->Next()) != 0) {
 
  434         SetError(-1,
"mismatch in column names",
"GetTableInfo");
 
  457#if MYSQL_VERSION_ID >= 40100 
  545      while ((row = 
stats->Next()) != 0) {
 
  555         for (
int n=1;
n<
stats->GetFieldCount();
n++) {
 
 
  598      sql.Form(
"SHOW COLUMNS FROM %s LIKE '%s'", table, 
wild);
 
  600      sql.Form(
"SHOW COLUMNS FROM %s", table);
 
 
  644   #if MYSQL_VERSION_ID >= 80000 
 
  665#if MYSQL_VERSION_ID >= 80000 
  667#elif MYSQL_VERSION_ID >= 50001 || \ 
  668    (MYSQL_VERSION_ID < 50000 && MYSQL_VERSION_ID >= 40103) 
 
  702#if MYSQL_VERSION_ID < 40100 
 
  715#if MYSQL_VERSION_ID < 40100 
  717   SetError(-1, 
"Statement class does not supported by MySQL version < 4.1", 
"Statement");
 
  724      SetError(-1, 
"no query string specified",
"Statement");
 
 
  760#if MYSQL_VERSION_ID >= 40100 
 
  782#if MYSQL_VERSION_ID >= 40100 
 
  809         Error(
"PingVerify", 
"not able to automatically reconnect a second time");
 
  812         Info(
"PingVerify", 
"connection was lost, but could automatically reconnect");
 
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
 
#define CheckErrNo(method, force, res)
 
#define CheckConnect(method, res)
 
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
 
Int_t SelectDataBase(const char *dbname) final
Select a database. Returns 0 if successful, non-zero otherwise.
 
Bool_t Rollback() final
Rollback changes.
 
TSQLResult * GetColumns(const char *dbname, const char *table, const char *wild=nullptr) final
List all columns in specified table in the specified database.
 
TSQLResult * GetDataBases(const char *wild=nullptr) final
List all available databases.
 
TSQLStatement * Statement(const char *sql, Int_t=100) final
Produce TMySQLStatement.
 
void Close(Option_t *opt="") final
Close connection to MySQL DB server.
 
Bool_t PingVerify() final
Execute Ping to SQL Connection.
 
TSQLResult * GetTables(const char *dbname, const char *wild=nullptr) final
List all tables in the specified database.
 
Bool_t StartTransaction() final
Start transaction.
 
Int_t Reload() final
Reload permission tables.
 
TMySQLServer(const char *db, const char *uid, const char *pw)
Open a connection to a MySQL DB server.
 
TList * GetTablesList(const char *wild=nullptr) final
Return list of tables with specified wildcard.
 
const char * ServerInfo() final
Return server info in form "MySQL <vesrion>".
 
TSQLTableInfo * GetTableInfo(const char *tablename) final
Produces SQL table info.
 
TSQLResult * Query(const char *sql) final
Execute SQL command.
 
Bool_t Exec(const char *sql) final
Execute SQL command which does not produce any result sets.
 
Int_t CreateDataBase(const char *dbname) final
Create a database. Returns 0 if successful, non-zero otherwise.
 
Bool_t HasStatement() const final
Return kTRUE if TSQLStatement class is supported.
 
~TMySQLServer()
Close connection to MySQL DB server.
 
Bool_t Commit() final
Commit changes.
 
Int_t Ping() final
Execute Ping to SQL Connection using the mysql_ping function.
 
Int_t DropDataBase(const char *dbname) final
Drop (i.e.
 
Int_t Shutdown() final
Shutdown the database server.
 
Collectable string class.
 
Mother of all ROOT objects.
 
virtual const char * GetName() const
Returns name of object.
 
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
 
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
 
virtual const char * GetField(Int_t field)=0
 
virtual Bool_t Commit()
submit "COMMIT" query to database return kTRUE, if successful
 
void ClearError()
reset error fields
 
void SetError(Int_t code, const char *msg, const char *method=nullptr)
set new values for error fields if method is specified, displays error message
 
virtual Bool_t Rollback()
submit "ROLLBACK" query to database return kTRUE, if successful
 
virtual Bool_t StartTransaction()
submit "START TRANSACTION" query to database return kTRUE, if successful
 
virtual Bool_t IsError() const
 
virtual Bool_t IsConnected() const
 
void ToLower()
Change string to lower-case.
 
Int_t Atoi() const
Return integer value of string.
 
const char * Data() const
 
TString & ReplaceAll(const TString &s1, const TString &s2)
 
TString & Remove(Ssiz_t pos)
 
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
 
This class represents a WWW compatible URL.