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