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