db_bridge/include/abstract_db.h
changeset 14 862d63715611
parent 13 2640a7fd96ca
child 15 5a0ca1f9a2f1
--- a/db_bridge/include/abstract_db.h
+++ b/db_bridge/include/abstract_db.h
@@ -17,8 +17,11 @@
     std::string server;
 
   public:
+    typedef std::vector < std::vector<std::string> > DB_RESULT;
+    typedef std::vector<std::string> DB_ROW;
+
     virtual ~ Abstract_DB () {}
     virtual bool connect () = 0;
-    virtual std::vector < std::vector<std::string> >query (std::string) = 0;
+    virtual DB_RESULT query (std::string) = 0;
 };
 #endif