dtn::MysqlSQLImplementation Class Reference

#include <MysqlSQLImplementation.h>

Inheritance diagram for dtn::MysqlSQLImplementation:

oasys::SQLImplementation oasys::Logger List of all members.

Detailed Description

Mysql based implementation of SQL database.

Definition at line 29 of file MysqlSQLImplementation.h.

Public Member Functions

 MysqlSQLImplementation ()
int connect (const char *dbname)
 Virtual functions inherited from SQLImplementation.
int close ()
 Virtual functions inherited from SQLImplementation.
bool has_table (const char *tablename)
 Virtual functions inherited from SQLImplementation.
int exec_query (const char *query)
 Virtual functions inherited from SQLImplementation.
int num_tuples ()
 Virtual functions inherited from SQLImplementation.
const char * get_value (int tuple_no, int field_no)
 Virtual functions inherited from SQLImplementation.
const char * binary_datatype ()
 Virtual functions inherited from SQLImplementation.
const char * escape_string (const char *from)
 Virtual functions inherited from SQLImplementation.
const u_char * escape_binary (const u_char *from, int from_length)
 Virtual functions inherited from SQLImplementation.
const u_char * unescape_binary (const u_char *from)
 Virtual functions inherited from SQLImplementation.

Private Attributes

MYSQL * db_
 the db connection
MYSQL_RES * query_result_


Constructor & Destructor Documentation

dtn::MysqlSQLImplementation::MysqlSQLImplementation (  ) 


Member Function Documentation

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

Virtual functions inherited from SQLImplementation.

Implements oasys::SQLImplementation.

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

Virtual functions inherited from SQLImplementation.

Implements oasys::SQLImplementation.

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

Virtual functions inherited from SQLImplementation.

Implements oasys::SQLImplementation.

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

Virtual functions inherited from SQLImplementation.

Implements oasys::SQLImplementation.

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

Virtual functions inherited from SQLImplementation.

Implements oasys::SQLImplementation.

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

Virtual functions inherited from SQLImplementation.

Implements oasys::SQLImplementation.

const char* dtn::MysqlSQLImplementation::binary_datatype (  ) 

Virtual functions inherited from SQLImplementation.

Reimplemented from oasys::SQLImplementation.

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

Virtual functions inherited from SQLImplementation.

Implements oasys::SQLImplementation.

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

Virtual functions inherited from SQLImplementation.

Implements oasys::SQLImplementation.

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

Virtual functions inherited from SQLImplementation.

Implements oasys::SQLImplementation.


Member Data Documentation

MYSQL* dtn::MysqlSQLImplementation::db_ [private]

the db connection

Definition at line 52 of file MysqlSQLImplementation.h.

MYSQL_RES* dtn::MysqlSQLImplementation::query_result_ [private]

Definition at line 53 of file MysqlSQLImplementation.h.


The documentation for this class was generated from the following file:
Generated on Thu Jun 7 12:54:34 2007 for DTN Reference Implementation by  doxygen 1.5.1