TPgSQLServer Class Reference

#include <TPgSQLServer.h>

Inheritance diagram for TPgSQLServer:

TSQLServer TObject TObject List of all members.

Public Member Functions

 TPgSQLServer (const char *db, const char *uid, const char *pw)
 ~TPgSQLServer ()
void Close (Option_t *opt="")
TSQLResultQuery (const char *sql)
TSQLStatementStatement (const char *sql, Int_t=100)
Bool_t HasStatement () const
Int_t SelectDataBase (const char *dbname)
TSQLResultGetDataBases (const char *wild=0)
TSQLResultGetTables (const char *dbname, const char *wild=0)
TSQLResultGetColumns (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

Detailed Description

Definition at line 27 of file TPgSQLServer.h.


Constructor & Destructor Documentation

TPgSQLServer::TPgSQLServer ( const char *  db,
const char *  uid,
const char *  pw 
)

TPgSQLServer::~TPgSQLServer (  ) 

Definition at line 67 of file TPgSQLServer.cxx.

References Close(), and TSQLServer::IsConnected().


Member Function Documentation

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]

Reimplemented from TSQLServer.

Definition at line 317 of file TPgSQLServer.cxx.

References kFALSE, and kTRUE.

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.


Member Data Documentation

PGconn* TPgSQLServer::fPgSQL [private]

Definition at line 30 of file TPgSQLServer.h.

Referenced by Close(), CreateDataBase(), DropDataBase(), Query(), SelectDataBase(), and ServerInfo().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:44:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1