comparison Framework/MySQL/MySQLParameters.cpp @ 22:1e9bad493475

prevent running unit tests on a non-existing db
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 11 Jul 2018 14:39:59 +0200
parents 7cea966b6829
children b2ff1cd2907a
comparison
equal deleted inserted replaced
21:2e5d2c69d4f9 22:1e9bad493475
123 123
124 void MySQLParameters::SetUnixSocket(const std::string& socket) 124 void MySQLParameters::SetUnixSocket(const std::string& socket)
125 { 125 {
126 unixSocket_ = socket; 126 unixSocket_ = socket;
127 } 127 }
128
129
130 void MySQLParameters::Format(Json::Value& target) const
131 {
132 target = Json::objectValue;
133 target["Host"] = host_;
134 target["Username"] = username_;
135 target["Password"] = password_;
136 target["Database"] = database_;
137 target["Port"] = port_;
138 target["UnixSocket"] = unixSocket_;
139 target["Lock"] = lock_;
140 }
128 } 141 }