Implements a MySQL version of the Database interface.
More...
#include <arc/MysqlWrapper.h>
|
| MySQLDatabase (std::string &server, int port) |
|
| MySQLDatabase (const MySQLDatabase &other) |
|
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. More...
|
|
virtual void | close () |
| Close the connection with database server. More...
|
|
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. More...
|
|
| Database () |
| Default constructor. More...
|
|
| Database (std::string &server, int port) |
| Constructor which uses the server's name(or IP address) and port as parameters. More...
|
|
| Database (const Database &other) |
| Copy constructor. More...
|
|
virtual | ~Database () |
| Deconstructor. More...
|
|
Implements a MySQL version of the Database interface.
◆ close()
virtual void Arc::MySQLDatabase::close |
( |
| ) |
|
|
virtual |
Close the connection with database server.
Implements Arc::Database.
◆ connect()
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.
◆ enable_ssl()
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.
◆ isconnected()
virtual bool Arc::MySQLDatabase::isconnected |
( |
| ) |
const |
|
inlinevirtual |
◆ shutdown()
virtual bool Arc::MySQLDatabase::shutdown |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: