db_bridge/include/mysql_db.hpp
changeset 65 76514757b0d6
equal deleted inserted replaced
64:993b97c4ad2d 65:76514757b0d6
       
     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.hpp>
       
    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     Abstract_DB::DB_RESULT query (std::string);
       
    24 };
       
    25 #endif