#include <MysqlWrapper.h>
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 () |
Implement the database accessing interface in DBInterface.h by using mysql client library for accessing mysql database
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
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
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.