summaryrefslogtreecommitdiff
path: root/mcon.h
diff options
context:
space:
mode:
Diffstat (limited to 'mcon.h')
-rw-r--r--mcon.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/mcon.h b/mcon.h
new file mode 100644
index 0000000..e213917
--- /dev/null
+++ b/mcon.h
@@ -0,0 +1,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