Belle II Software  release-08-01-10
PostgreSQLInterface Class Reference
Inheritance diagram for PostgreSQLInterface:
Collaboration diagram for PostgreSQLInterface:

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
 

Detailed Description

Definition at line 23 of file PostgreSQLInterface.h.


The documentation for this class was generated from the following files: