equal
deleted
inserted
replaced
2 * db_bridge/mysql_db.cpp |
2 * db_bridge/mysql_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 <mysql_db.h> |
7 #include <mysql_db.hpp> |
8 #include <console.h> |
8 #include <console.hpp> |
9 |
9 |
10 MySQL_DB::MySQL_DB (std::string srv, std::string usr, std::string pwd, std::string db) |
10 MySQL_DB::MySQL_DB (std::string srv, std::string usr, std::string pwd, std::string db) |
11 { |
11 { |
12 server = (srv != "") ? srv : "localhost"; |
12 server = (srv != "") ? srv : "localhost"; |
13 user = (usr != "") ? usr : getenv ("USER"); |
13 user = (usr != "") ? usr : getenv ("USER"); |