equal
deleted
inserted
replaced
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"); |