blob: 9e4ec2521829909ea05666c16dd8357c91a497c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef MYGRATE_INPUT_MYSQLCONN_H
#define MYGRATE_INPUT_MYSQLCONN_H
#include <dbConn.h>
#include <dbTypes.h>
#include <initializer_list>
#include <mysql.h>
namespace MyGrate::Input {
class MySQLConn : public MYSQL, public DbConn {
public:
MySQLConn(const char * const host, const char * const user, const char * const pass, unsigned short port);
~MySQLConn();
void query(const char * const) override;
void query(const char * const q, const std::initializer_list<DbValue> &) override;
};
}
#endif
|