db_bridge/include/postgresql_db.h
changeset 34 4a35f239fe5b
parent 14 862d63715611
child 40 be3f5582b839
equal deleted inserted replaced
33:5e0a954f7c0b 34:4a35f239fe5b
    14 
    14 
    15 class PostgreSQL_DB:public Abstract_DB {
    15 class PostgreSQL_DB:public Abstract_DB {
    16   private:
    16   private:
    17     PGconn * conn;
    17     PGconn * conn;
    18     PGresult *res;
    18     PGresult *res;
    19       std::string conninfo;
    19     std::string conninfo;
    20 
    20 
    21   public:
    21   public:
    22       PostgreSQL_DB (std::string, std::string, std::string, std::string);
    22     PostgreSQL_DB (std::string, std::string, std::string, std::string);
    23       virtual ~ PostgreSQL_DB ();
    23     virtual ~ PostgreSQL_DB ();
    24       bool connect ();
    24     bool connect ();
    25       Abstract_DB::DB_RESULT query (std::string);
    25     Abstract_DB::DB_RESULT query (std::string);
    26 };
    26 };
    27 #endif
    27 #endif