mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-04-24 05:43:21 +02:00
27 lines
420 B
C++
27 lines
420 B
C++
#ifndef MYSQL_CONNECTION
|
|
#define MYSQL_CONNECTION
|
|
|
|
//Brynet has it aswell, and because of using namespace it is defined here aswell
|
|
//later this will be fixed better
|
|
#ifdef IS_NUM
|
|
#undef IS_NUM
|
|
#endif
|
|
|
|
#include <mysql.h>
|
|
|
|
class MysqlConnection {
|
|
public:
|
|
MysqlConnection() {
|
|
mysql = new MYSQL();
|
|
}
|
|
~MysqlConnection()
|
|
{
|
|
delete mysql;
|
|
}
|
|
|
|
MYSQL *mysql;
|
|
};
|
|
|
|
#undef IS_NUM
|
|
|
|
#endif |