12#ifndef ROOT_TPgSQLServer 
   13#define ROOT_TPgSQLServer 
#define ClassDefOverride(name, id)
 
TSQLResult * GetTables(const char *dbname, const char *wild=nullptr) final
List all tables in the specified database.
 
Int_t CreateDataBase(const char *dbname) final
Create a database. Returns 0 if successful, non-zero otherwise.
 
TSQLResult * Query(const char *sql) final
Execute SQL command.
 
const char * ServerInfo() final
Return server info.
 
Int_t SelectDataBase(const char *dbname) final
Select a database. Returns 0 if successful, non-zero otherwise.
 
Bool_t HasStatement() const final
PG_VERSION_NUM conveniently only started being #defined at 8.2.3 which is the first version of libpq ...
 
TSQLTableInfo * GetTableInfo(const char *tablename) final
Produce TSQLTableInfo.
 
std::map< Int_t, std::string > fOidTypNameMap
 
Int_t Reload() final
Reload permission tables.
 
Int_t Shutdown() final
Shutdown the database server.
 
Int_t DropDataBase(const char *dbname) final
Drop (i.e.
 
TSQLResult * GetDataBases(const char *wild=nullptr) final
List all available databases.
 
void Close(Option_t *opt="") final
Close connection to PgSQL DB server.
 
TPgSQLServer(const char *db, const char *uid, const char *pw)
Open a connection to a PgSQL DB server.
 
TSQLStatement * Statement(const char *sql, Int_t=100) final
Produce TPgSQLStatement.
 
~TPgSQLServer()
Close connection to PgSQL DB server.
 
TSQLResult * GetColumns(const char *dbname, const char *table, const char *wild=nullptr) final
List all columns in specified table in the specified database.