Mercurial > hg > orthanc-databases
diff 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 |
line wrap: on
line diff
--- a/Framework/MySQL/MySQLParameters.cpp Tue Jul 10 14:33:05 2018 +0200 +++ b/Framework/MySQL/MySQLParameters.cpp Wed Jul 11 14:39:59 2018 +0200 @@ -125,4 +125,17 @@ { unixSocket_ = socket; } + + + void MySQLParameters::Format(Json::Value& target) const + { + target = Json::objectValue; + target["Host"] = host_; + target["Username"] = username_; + target["Password"] = password_; + target["Database"] = database_; + target["Port"] = port_; + target["UnixSocket"] = unixSocket_; + target["Lock"] = lock_; + } }