db_bridge/include/mysql_db.h
changeset 12 9f0ce4eaa1ce
child 14 862d63715611
equal deleted inserted replaced
11:0a8be4eac87e 12:9f0ce4eaa1ce
       
     1 /**
       
     2  * db_bridge/include/mysql_db.h
       
     3  * Copyright 2008 (C) Markus Broeker
       
     4  */
       
     5 
       
     6 #ifndef MYSQL_DB_H
       
     7 #define MYSQL_DB_H
       
     8 
       
     9 #include <iostream>
       
    10 #include <mysql/mysql.h>
       
    11 
       
    12 #include <abstract_db.h>
       
    13 
       
    14 class MySQL_DB:public Abstract_DB {
       
    15   private:
       
    16     MYSQL * conn;
       
    17     MYSQL_RES *res;
       
    18 
       
    19   public:
       
    20       MySQL_DB (std::string, std::string, std::string, std::string);
       
    21       virtual ~ MySQL_DB ();
       
    22       bool connect ();
       
    23       std::vector < std::vector <std::string> >query (std::string);
       
    24 };
       
    25 #endif