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