db_bridge/postgresql_db.cpp
changeset 65 76514757b0d6
parent 40 be3f5582b839
child 125 9c0fdc119939
equal deleted inserted replaced
64:993b97c4ad2d 65:76514757b0d6
     2  * db_bridge/postgresql_db.cpp
     2  * db_bridge/postgresql_db.cpp
     3  * Copyright 2008 (C) Markus Broeker
     3  * Copyright 2008 (C) Markus Broeker
     4  */
     4  */
     5 
     5 
     6 #include <cstdlib>
     6 #include <cstdlib>
     7 #include <postgresql_db.h>
     7 #include <postgresql_db.hpp>
     8 #include <exception>
     8 #include <exception>
     9 #include <console.h>
     9 #include <console.hpp>
    10 
    10 
    11 PostgreSQL_DB::PostgreSQL_DB (std::string srv, std::string usr, std::string pwd, std::string db)
    11 PostgreSQL_DB::PostgreSQL_DB (std::string srv, std::string usr, std::string pwd, std::string db)
    12 {
    12 {
    13     server = srv;
    13     server = srv;
    14     user = (usr != "") ? usr : getenv ("USER");
    14     user = (usr != "") ? usr : getenv ("USER");