Handles the connection to the database.
More...
#include <Database.h>
|
| | Database (std::string serverAddress, int serverPort=3306) |
| | Sets a few settings. More...
|
| |
| | ~Database () |
| |
| sql::Connection * | Connect (std::string username, std::string password, std::string database) |
| | Connects to the database. More...
|
| |
|
|
std::string | address |
| | IP Address of the database server.
|
| |
|
int | port |
| | Port of the database server.
|
| |
Handles the connection to the database.
| Database::Database |
( |
std::string |
serverAddress, |
|
|
int |
serverPort = 3306 |
|
) |
| |
Sets a few settings.
- Parameters
-
| serverAddress | IP Address of the database server. |
| serverPort | Port of the database server. |
Deconstructor closes driver thread.
| sql::Connection * Database::Connect |
( |
std::string |
username, |
|
|
std::string |
password, |
|
|
std::string |
database |
|
) |
| |
Connects to the database.
- Parameters
-
The documentation for this class was generated from the following files:
- /home/travis/build/TheMaximum/mania-pp/src/Database/Database.h
- /home/travis/build/TheMaximum/mania-pp/src/Database/Database.cpp