dtn::PostgresSQLImplementation Class Reference

#include <PostgresSQLImplementation.h>

Inheritance diagram for dtn::PostgresSQLImplementation:

oasys::SQLImplementation oasys::Logger

List of all members.


Detailed Description

Postgres based implementation of SQL database.

Definition at line 29 of file PostgresSQLImplementation.h.


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_

Constructor & Destructor Documentation

dtn::PostgresSQLImplementation::PostgresSQLImplementation (  ) 


Member Function Documentation

int dtn::PostgresSQLImplementation::connect ( const char *  dbname  )  [virtual]

Virtual functions inherited from SQLImplementation

Implements oasys::SQLImplementation.

int dtn::PostgresSQLImplementation::close (  )  [virtual]

Virtual functions inherited from SQLImplementation

Implements oasys::SQLImplementation.

bool dtn::PostgresSQLImplementation::has_table ( const char *  tablename  )  [virtual]

Virtual functions inherited from SQLImplementation

Implements oasys::SQLImplementation.

int dtn::PostgresSQLImplementation::exec_query ( const char *  query  )  [virtual]

Virtual functions inherited from SQLImplementation

Implements oasys::SQLImplementation.

int dtn::PostgresSQLImplementation::num_tuples (  )  [virtual]

Virtual functions inherited from SQLImplementation

Implements oasys::SQLImplementation.

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

Virtual functions inherited from SQLImplementation

Implements oasys::SQLImplementation.

const char* dtn::PostgresSQLImplementation::escape_string ( const char *  from  )  [virtual]

Virtual functions inherited from SQLImplementation

Implements oasys::SQLImplementation.

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

Virtual functions inherited from SQLImplementation

Implements oasys::SQLImplementation.

const u_char* dtn::PostgresSQLImplementation::unescape_binary ( const u_char *  from  )  [virtual]

Virtual functions inherited from SQLImplementation

Implements oasys::SQLImplementation.


Member Data Documentation

PGconn* dtn::PostgresSQLImplementation::db_ [private]

the db connection

Definition at line 51 of file PostgresSQLImplementation.h.

PGresult* dtn::PostgresSQLImplementation::query_result_ [private]

Definition at line 52 of file PostgresSQLImplementation.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 8 08:43:49 2007 for DTN Reference Implementation by  doxygen 1.5.3