ARC SDK
Public Member Functions
Arc::MySQLDatabase Class Reference

Implements a MySQL version of the Database interface. More...

#include <arc/MysqlWrapper.h>

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

Public Member Functions

virtual bool connect (std::string &dbname, std::string &user, std::string &password)
 Do connection with database server. More...
 
virtual bool isconnected () const
 Get the connection status.
 
virtual void close ()
 Close the connection with database server.
 
virtual bool enable_ssl (const std::string &keyfile="", const std::string &certfile="", const std::string &cafile="", const std::string &capath="")
 Enable ssl communication for the connection. More...
 
virtual bool shutdown ()
 Ask database server to shutdown.
 
- Public Member Functions inherited from Arc::Database
 Database ()
 Default constructor.
 
 Database (std::string &server, int port)
 Constructor which uses the server's name(or IP address) and port as parameters.
 
 Database (const Database &other)
 Copy constructor.
 
virtual ~Database ()
 Deconstructor.
 

Detailed Description

Implements a MySQL version of the Database interface.

Member Function Documentation

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

Do connection with database server.

Parameters
dbnameThe database name which will be used.
userThe username which will be used to access database.
passwordThe 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
keyfileThe location of key file.
certfileThe location of certificate file.
cafileThe location of ca file.
capathThe location of ca directory

Implements Arc::Database.


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