summaryrefslogtreecommitdiff
path: root/mcon.h
blob: e21391753b556a457a88df2ef3252472c4574725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef MCON_H
#define MCON_H

#include <mysql/mysql.h>
#include <string>
#include <iostream>

using namespace std;

class mcon
{

private:
    bool query_sent;
    MYSQL_RES *current_result;
public:
    MYSQL *myc;
    mcon( MYSQL *mysql );
    ~mcon();
    int query(string query);
    MYSQL_ROW get_next_row();

};
#endif