Arc::MySQLDatabase Class Reference

#include <MysqlWrapper.h>

Inheritance diagram for Arc::MySQLDatabase:
Arc::Database

Public Member Functions

virtual bool connect (std::string &dbname, std::string &user, std::string &password)
virtual bool isconnected () const
virtual void close ()
virtual bool enable_ssl (const std::string &keyfile="", const std::string &certfile="", const std::string &cafile="", const std::string &capath="")
virtual bool shutdown ()

Detailed Description

Implement the database accessing interface in DBInterface.h by using mysql client library for accessing mysql database


Member Function Documentation

virtual void Arc::MySQLDatabase::close (  )  [virtual]

Close the connection with database server

Implements Arc::Database.

virtual bool Arc::MySQLDatabase::connect ( std::string &  dbname,
std::string &  user,
std::string &  password 
) [virtual]

Do connection with database server

Parameters:
dbname The database name which will be used.
user The username which will be used to access database.
password The password which will be used to access database.

Implements Arc::Database.

virtual bool Arc::MySQLDatabase::enable_ssl ( const std::string &  keyfile = "",
const std::string &  certfile = "",
const std::string &  cafile = "",
const std::string &  capath = "" 
) [virtual]

Enable ssl communication for the connection

Parameters:
keyfile The location of key file.
certfile The location of certificate file.
cafile The location of ca file.
capath The location of ca directory

Implements Arc::Database.

virtual bool Arc::MySQLDatabase::isconnected (  )  const [inline, virtual]

Get the connection status

Implements Arc::Database.

virtual bool Arc::MySQLDatabase::shutdown (  )  [virtual]

Ask database server to shutdown

Implements Arc::Database.


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 11:54:21 2012 for Hosting Environment (Daemon) by  doxygen 1.6.3