#include <TPgSQLServer.h>
Inheritance diagram for TPgSQLServer:
Public Member Functions | |
TPgSQLServer (const char *db, const char *uid, const char *pw) | |
~TPgSQLServer () | |
void | Close (Option_t *opt="") |
TSQLResult * | Query (const char *sql) |
TSQLStatement * | Statement (const char *sql, Int_t=100) |
Bool_t | HasStatement () const |
Int_t | SelectDataBase (const char *dbname) |
TSQLResult * | GetDataBases (const char *wild=0) |
TSQLResult * | GetTables (const char *dbname, const char *wild=0) |
TSQLResult * | GetColumns (const char *dbname, const char *table, const char *wild=0) |
Int_t | CreateDataBase (const char *dbname) |
Int_t | DropDataBase (const char *dbname) |
Int_t | Reload () |
Int_t | Shutdown () |
const char * | ServerInfo () |
Private Attributes | |
PGconn * | fPgSQL |
Definition at line 27 of file TPgSQLServer.h.
TPgSQLServer::TPgSQLServer | ( | const char * | db, | |
const char * | uid, | |||
const char * | pw | |||
) |
TPgSQLServer::~TPgSQLServer | ( | ) |
void TPgSQLServer::Close | ( | Option_t * | opt = "" |
) | [virtual] |
Implements TSQLServer.
Definition at line 76 of file TPgSQLServer.cxx.
References fPgSQL, and TSQLServer::fPort.
Referenced by SelectDataBase(), and ~TPgSQLServer().
TSQLResult * TPgSQLServer::Query | ( | const char * | sql | ) | [virtual] |
Implements TSQLServer.
Definition at line 88 of file TPgSQLServer.cxx.
References TObject::Error(), fPgSQL, and TSQLServer::IsConnected().
Referenced by GetColumns(), GetDataBases(), and GetTables().
TSQLStatement * TPgSQLServer::Statement | ( | const char * | sql, | |
Int_t | = 100 | |||
) | [virtual] |
Reimplemented from TSQLServer.
Definition at line 334 of file TPgSQLServer.cxx.
References Error, PgSQL_Stmt_t::fConn, PgSQL_Stmt_t::fRes, pgsql_success, and stat.
Bool_t TPgSQLServer::HasStatement | ( | ) | const [virtual] |
Int_t TPgSQLServer::SelectDataBase | ( | const char * | dbname | ) | [virtual] |
Implements TSQLServer.
Definition at line 112 of file TPgSQLServer.cxx.
References Close(), TString::Data(), TObject::Error(), TSQLServer::fDB, TSQLServer::fHost, fPgSQL, TSQLServer::fPort, TSQLServer::IsConnected(), opts, XrdMonCtrCollector::port, and pwd().
Referenced by GetColumns(), and GetTables().
TSQLResult * TPgSQLServer::GetDataBases | ( | const char * | wild = 0 |
) | [virtual] |
Implements TSQLServer.
Definition at line 151 of file TPgSQLServer.cxx.
References TObject::Error(), Form(), TSQLServer::IsConnected(), and Query().
TSQLResult * TPgSQLServer::GetTables | ( | const char * | dbname, | |
const char * | wild = 0 | |||
) | [virtual] |
Implements TSQLServer.
Definition at line 171 of file TPgSQLServer.cxx.
References TObject::Error(), Form(), TSQLServer::IsConnected(), Query(), and SelectDataBase().
TSQLResult * TPgSQLServer::GetColumns | ( | const char * | dbname, | |
const char * | table, | |||
const char * | wild = 0 | |||
) | [virtual] |
Implements TSQLServer.
Definition at line 196 of file TPgSQLServer.cxx.
References TObject::Error(), Form(), TSQLServer::IsConnected(), Query(), and SelectDataBase().
Int_t TPgSQLServer::CreateDataBase | ( | const char * | dbname | ) | [virtual] |
Implements TSQLServer.
Definition at line 231 of file TPgSQLServer.cxx.
References TObject::Error(), Form(), fPgSQL, and TSQLServer::IsConnected().
Int_t TPgSQLServer::DropDataBase | ( | const char * | dbname | ) | [virtual] |
Implements TSQLServer.
Definition at line 247 of file TPgSQLServer.cxx.
References TObject::Error(), Form(), fPgSQL, and TSQLServer::IsConnected().
Int_t TPgSQLServer::Reload | ( | ) | [virtual] |
Implements TSQLServer.
Definition at line 264 of file TPgSQLServer.cxx.
References TObject::Error(), and TSQLServer::IsConnected().
Int_t TPgSQLServer::Shutdown | ( | ) | [virtual] |
Implements TSQLServer.
Definition at line 279 of file TPgSQLServer.cxx.
References TObject::Error(), and TSQLServer::IsConnected().
const char * TPgSQLServer::ServerInfo | ( | ) | [virtual] |
Implements TSQLServer.
Definition at line 294 of file TPgSQLServer.cxx.
References TObject::Error(), fPgSQL, TSQLServer::IsConnected(), and stat.
PGconn* TPgSQLServer::fPgSQL [private] |
Definition at line 30 of file TPgSQLServer.h.
Referenced by Close(), CreateDataBase(), DropDataBase(), Query(), SelectDataBase(), and ServerInfo().