ARC SDK
|
Implements a MySQL version of the Database interface. More...
#include <arc/MysqlWrapper.h>
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. | |
![]() | |
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. | |
Implements a MySQL version of the Database interface.
|
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 |
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.