db_bridge/mysql_db.cpp
changeset 65 76514757b0d6
parent 40 be3f5582b839
child 126 52722ac7693f
equal deleted inserted replaced
64:993b97c4ad2d 65:76514757b0d6
     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");