Belle II Software development
|
Public Member Functions | |
PostgreSQLInterface (const std::string &host, const std::string &database, const std::string &user, const std::string &password, int port) | |
void | connect () override |
bool | isConnected () override |
void | execute_imp (const char *command) override |
void | close () override |
void | clear () override |
DBRecordList | loadRecords () override |
bool | checkTable (const std::string &tablename) override |
DBFieldTypeList | getTableContents (const std::string &tablename) override |
void | execute (const char *command,...) |
void | execute (const std::string &command) |
void | clearRecords () |
DBRecordList & | getRecords () |
const std::string & | getHostName () const |
const std::string & | getDatabase () const |
const std::string & | getUserName () const |
const std::string & | getPassword () const |
int | getPort () const |
Protected Member Functions | |
void | init (const std::string &host, const std::string &database, const std::string &user, const std::string &password, int port) |
Protected Attributes | |
DBRecordList | m_record_v |
std::string | m_host |
std::string | m_database |
std::string | m_user |
std::string | m_password |
int | m_port |
Private Attributes | |
PGconn * | m_sq_conn |
PGresult * | m_sq_result |
Mutex | m_mutex |
char * | m_buf |
Static Private Attributes | |
static const int | m_buf_size = 1024 * 1000 |
Definition at line 23 of file PostgreSQLInterface.h.
PostgreSQLInterface | ( | const std::string & | host, |
const std::string & | database, | ||
const std::string & | user, | ||
const std::string & | password, | ||
int | port | ||
) |
Definition at line 22 of file PostgreSQLInterface.cc.
Definition at line 33 of file PostgreSQLInterface.cc.
|
inlinevirtual |
Definition at line 32 of file PostgreSQLInterface.h.
|
overridevirtual |
Implements DBInterface.
Definition at line 164 of file PostgreSQLInterface.cc.
|
overridevirtual |
Implements DBInterface.
Definition at line 137 of file PostgreSQLInterface.cc.
|
inlineinherited |
Definition at line 47 of file DBInterface.h.
|
overridevirtual |
Implements DBInterface.
Definition at line 150 of file PostgreSQLInterface.cc.
|
overridevirtual |
Implements DBInterface.
Definition at line 45 of file PostgreSQLInterface.cc.
|
inherited |
Definition at line 45 of file DBInterface.cc.
|
inherited |
Definition at line 65 of file DBInterface.cc.
|
overridevirtual |
Implements DBInterface.
Definition at line 80 of file PostgreSQLInterface.cc.
|
inlineinherited |
Definition at line 50 of file DBInterface.h.
|
inlineinherited |
Definition at line 49 of file DBInterface.h.
|
inlineinherited |
Definition at line 52 of file DBInterface.h.
|
inlineinherited |
Definition at line 53 of file DBInterface.h.
|
inlineinherited |
Definition at line 48 of file DBInterface.h.
|
overridevirtual |
Implements DBInterface.
Definition at line 176 of file PostgreSQLInterface.cc.
|
inlineinherited |
Definition at line 51 of file DBInterface.h.
|
protectedinherited |
Definition at line 32 of file DBInterface.cc.
|
overridevirtual |
Implements DBInterface.
Definition at line 69 of file PostgreSQLInterface.cc.
|
overridevirtual |
Implements DBInterface.
Definition at line 99 of file PostgreSQLInterface.cc.
|
privateinherited |
Definition at line 74 of file DBInterface.h.
|
staticprivateinherited |
Definition at line 73 of file DBInterface.h.
|
protectedinherited |
Definition at line 66 of file DBInterface.h.
|
protectedinherited |
Definition at line 65 of file DBInterface.h.
|
private |
Definition at line 47 of file PostgreSQLInterface.h.
|
protectedinherited |
Definition at line 68 of file DBInterface.h.
|
protectedinherited |
Definition at line 69 of file DBInterface.h.
|
protectedinherited |
Definition at line 64 of file DBInterface.h.
|
private |
Definition at line 45 of file PostgreSQLInterface.h.
|
private |
Definition at line 46 of file PostgreSQLInterface.h.
|
protectedinherited |
Definition at line 67 of file DBInterface.h.