dtn::PostgresSQLImplementation Class Reference

Postgres based implementation of SQL database. More...

#include <PostgresSQLImplementation.h>

List of all members.

Public Member Functions

 PostgresSQLImplementation ()
int connect (const char *dbname)
int close ()
bool has_table (const char *tablename)
int exec_query (const char *query)
int num_tuples ()
const char * get_value (int tuple_no, int field_no)
const char * escape_string (const char *from)
const u_char * escape_binary (const u_char *from, int from_length)
const u_char * unescape_binary (const u_char *from)

Private Attributes

PGconn * db_
 the db connection
PGresult * query_result_


Detailed Description

Postgres based implementation of SQL database.

Definition at line 29 of file PostgresSQLImplementation.h.


Constructor & Destructor Documentation

dtn::PostgresSQLImplementation::PostgresSQLImplementation (  ) 


Member Function Documentation

int dtn::PostgresSQLImplementation::close (  ) 

Virtual functions inherited from SQLImplementation

int dtn::PostgresSQLImplementation::connect ( const char *  dbname  ) 

Virtual functions inherited from SQLImplementation

const u_char* dtn::PostgresSQLImplementation::escape_binary ( const u_char *  from,
int  from_length 
)

Virtual functions inherited from SQLImplementation

const char* dtn::PostgresSQLImplementation::escape_string ( const char *  from  ) 

Virtual functions inherited from SQLImplementation

int dtn::PostgresSQLImplementation::exec_query ( const char *  query  ) 

Virtual functions inherited from SQLImplementation

const char* dtn::PostgresSQLImplementation::get_value ( int  tuple_no,
int  field_no 
)

Virtual functions inherited from SQLImplementation

bool dtn::PostgresSQLImplementation::has_table ( const char *  tablename  ) 

Virtual functions inherited from SQLImplementation

int dtn::PostgresSQLImplementation::num_tuples (  ) 

Virtual functions inherited from SQLImplementation

const u_char* dtn::PostgresSQLImplementation::unescape_binary ( const u_char *  from  ) 

Virtual functions inherited from SQLImplementation


Member Data Documentation

the db connection

Definition at line 51 of file PostgresSQLImplementation.h.

Definition at line 52 of file PostgresSQLImplementation.h.


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

Generated on Fri Jan 30 09:27:05 2009 for DTN Reference Implementation by  doxygen 1.5.8