12 #ifndef ROOT_TMySQLServer
13 #define ROOT_TMySQLServer
47 #ifndef ROOT_TSQLServer
60 TMySQLServer(
const char *db,
const char *uid,
const char *pw);
const char * ServerInfo()
Return server info in form "MySQL ".
TMySQLServer(const char *db, const char *uid, const char *pw)
~TMySQLServer()
Close connection to MySQL DB server.
Bool_t Exec(const char *sql)
Execute SQL command which does not produce any result sets.
TSQLResult * GetDataBases(const char *wild=0)
List all available databases.
Int_t Shutdown()
Shutdown the database server.
void Close(Option_t *opt="")
Close connection to MySQL DB server.
TSQLStatement * Statement(const char *sql, Int_t=100)
Produce TMySQLStatement.
TSQLResult * Query(const char *sql)
Execute SQL command.
#define ClassDef(name, id)
Int_t SelectDataBase(const char *dbname)
Select a database. Returns 0 if successful, non-zero otherwise.
Bool_t StartTransaction()
Start transaction.
TSQLResult * GetColumns(const char *dbname, const char *table, const char *wild=0)
List all columns in specified table in the specified database.
TList * GetTablesList(const char *wild=0)
Return list of tables with specified wildcard.
Int_t DropDataBase(const char *dbname)
Drop (i.e.
Int_t Ping()
Execute Ping to SQL Connection using the mysql_ping function.
Bool_t Commit()
Commit changes.
Int_t CreateDataBase(const char *dbname)
Create a database. Returns 0 if successful, non-zero otherwise.
TSQLResult * GetTables(const char *dbname, const char *wild=0)
List all tables in the specified database.
Int_t GetMaxIdentifierLength()
Bool_t PingVerify()
Execute Ping to SQL Connection.
Bool_t HasStatement() const
Return kTRUE if TSQLStatement class is supported.
Bool_t Rollback()
Rollback changes.
TSQLTableInfo * GetTableInfo(const char *tablename)
Produces SQL table info.
Int_t Reload()
Reload permission tables.