7 #include "mysql_connection.h"
8 #include <cppconn/driver.h>
9 #include <cppconn/exception.h>
10 #include <cppconn/resultset.h>
11 #include <cppconn/statement.h>
26 Database(std::string serverAddress,
int serverPort = 3306);
40 sql::Connection*
Connect(std::string username, std::string password, std::string database);
sql::Driver * Driver
Database server driver.
Definition: Database.h:42
Handles the connection to the database.
Definition: Database.h:17
int port
Port of the database server.
Definition: Database.h:47
sql::Connection * Connection
Database server driver.
Definition: Database.h:43
~Database()
Definition: Database.cpp:9
sql::Connection * Connect(std::string username, std::string password, std::string database)
Connects to the database.
Definition: Database.cpp:18
std::string address
IP Address of the database server.
Definition: Database.h:46
Database(std::string serverAddress, int serverPort=3306)
Sets a few settings.
Definition: Database.cpp:3