db_bridge/include/abstract_db.h
changeset 17 b3731a25b9ec
parent 15 5a0ca1f9a2f1
child 34 4a35f239fe5b
equal deleted inserted replaced
16:2b4ef74a16aa 17:b3731a25b9ec
    15     std::string database;
    15     std::string database;
    16     std::string password;
    16     std::string password;
    17     std::string server;
    17     std::string server;
    18 
    18 
    19   public:
    19   public:
    20     typedef std::vector < std::vector <std::string> >DB_RESULT;
    20     typedef std::vector < std::vector<std::string> >DB_RESULT;
    21     typedef std::vector <std::string> DB_ROW;
    21     typedef std::vector <std::string> DB_ROW;
    22 
    22 
    23     virtual bool connect () = 0;
    23     virtual bool connect () = 0;
    24     virtual DB_RESULT query (std::string) = 0;
    24     virtual DB_RESULT query (std::string) = 0;
    25 };
    25 };