95      SetError(-1, 
"db argument should be started from odbc...",
"TODBCServer");
 
  101      if (!
url.IsValid()) {
 
  105      const char* driver = 
"MyODBC";
 
  110      if ((!uid || (*uid==0)) && (
strlen(
url.GetUser())>0)) {
 
  112         pw = 
url.GetPasswd();
 
  115      if (
strlen(
url.GetOptions()) != 0) driver = 
url.GetOptions();
 
  140      SetError(-1, 
"db argument is invalid", 
"TODBCServer");
 
 
  305   std::cout << 
"List of ODBC drivers:" << std::endl;
 
  307   while (
auto n = 
dynamic_cast<TNamed *
>(iter()))
 
  308      std::cout << 
"  " << 
n->GetName() << 
" : " << 
n->GetTitle() << std::endl;
 
 
  330   std::cout << 
"List of ODBC data sources:" << std::endl;
 
  332   while (
auto n = 
dynamic_cast<TNamed *
>(iter()))
 
  333      std::cout << 
"  " << 
n->GetName() << 
" : " << 
n->GetTitle() << std::endl;
 
 
  364#define CheckConnect(method, res)                       \ 
  367      if (!IsConnected()) {                             \ 
  368         SetError(-1,"ODBC driver is not connected",method); \ 
 
  516   if (!res) 
return nullptr;
 
  522   while ((row = res->
Next()) != 
nullptr) {
 
 
  549   #define STR_LEN 128+1 
  550   #define REM_LEN 254+1 
 
  713   SQLUINTEGER 
info = 0;
 
 
  785      SetError(-1, 
"no query string specified", 
"Statement");
 
 
  820   SQLUINTEGER 
info = 0;
 
  827      SetError(-1,
"Transactions not supported",
"StartTransaction");
 
 
  845   const char* 
method = commit ? 
"Commit" : 
"Rollback";
 
 
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 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 UChar_t len
 
Option_t Option_t TPoint TPoint const char text
 
#define CheckConnect(method, res)
 
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
 
The TNamed class is the base class for all named ROOT classes.
 
Bool_t ExtractErrors(SQLRETURN retcode, const char *method)
Extract errors, produced by last ODBC function call.
 
static void PrintDrivers()
Print list of ODBC drivers in form: <name> : <options-list>
 
TSQLResult * GetTables(const char *dbname, const char *wild=nullptr) final
List all tables in the specified database.
 
TSQLResult * GetDataBases(const char *wild=nullptr) final
List all available databases.
 
Int_t Shutdown() final
Shutdown the database server.
 
static TList * ListData(Bool_t isdrivers)
Produce TList object with list of available ODBC drivers (isdrivers = kTRUE) or data sources (isdrive...
 
TODBCServer(const char *db, const char *uid, const char *pw)
Open a connection to a ODBC server.
 
TSQLStatement * Statement(const char *sql, Int_t=100) final
Creates ODBC statement for provided query.
 
Bool_t EndTransaction(Bool_t commit)
Complete current transaction (commit = kTRUE) or rollback Switches on autocommit mode of ODBC driver.
 
Int_t Reload() final
Reload permission tables.
 
Bool_t StartTransaction() final
Starts transaction.
 
Int_t SelectDataBase(const char *dbname) final
Select a database.
 
virtual ~TODBCServer()
Close connection to MySQL DB server.
 
void Close(Option_t *opt="") final
Close connection to MySQL DB server.
 
Int_t GetMaxIdentifierLength() final
returns maximum allowed length of identifier (table name, column name, index name)
 
TSQLTableInfo * GetTableInfo(const char *tablename) final
Produces SQL table info Object must be deleted by user.
 
static TList * GetDrivers()
Produce TList object with list of available ODBC drivers User must delete TList object afterwards Nam...
 
Bool_t Rollback() final
Rollback transaction.
 
Int_t DropDataBase(const char *dbname) final
Drop (i.e.
 
static void PrintDataSources()
Print list of ODBC data sources in form: <name> : <options list>
 
const char * ServerInfo() final
Return server info.
 
TSQLResult * Query(const char *sql) final
Execute SQL command.
 
Int_t CreateDataBase(const char *dbname) final
Create a database. Returns 0 if successful, non-zero otherwise.
 
static TList * GetDataSources()
Produce TList object with list of available ODBC data sources User must delete TList object afterward...
 
TSQLResult * GetColumns(const char *dbname, const char *table, const char *wild=nullptr) final
List all columns in specified table in the specified database.
 
TList * GetTablesList(const char *wild=nullptr) final
Return list of tables in database See TSQLServer::GetTablesList() for details.
 
Bool_t Commit() final
Commit transaction.
 
Bool_t Exec(const char *sql) final
Executes query which does not produce any results set Return kTRUE if successful.
 
Collectable string class.
 
virtual TSQLRow * Next()=0
 
virtual const char * GetField(Int_t field)=0
 
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 IsConnected() const
 
This class represents a WWW compatible URL.