db_bridge/include/abstract_db.h
changeset 14 862d63715611
parent 13 2640a7fd96ca
child 15 5a0ca1f9a2f1
equal deleted inserted replaced
13:2640a7fd96ca 14:862d63715611
    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;
       
    21     typedef std::vector<std::string> DB_ROW;
       
    22 
    20     virtual ~ Abstract_DB () {}
    23     virtual ~ Abstract_DB () {}
    21     virtual bool connect () = 0;
    24     virtual bool connect () = 0;
    22     virtual std::vector < std::vector<std::string> >query (std::string) = 0;
    25     virtual DB_RESULT query (std::string) = 0;
    23 };
    26 };
    24 #endif
    27 #endif