aboutsummaryrefslogtreecommitdiff
path: root/db/mongo_access.cpp
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-09-10 16:20:11 +0200
committerneodarz <neodarz@neodarz.net>2019-09-10 16:20:11 +0200
commit1ae302dae3df2cb48c99ebdf407e490dca97d5fd (patch)
tree491e1f6ee0708ea379e3ead5f48246a36b88c0e9 /db/mongo_access.cpp
parentcc42e3be1c2cfe357efaaa49b6d3738f037a9696 (diff)
parentcc8c1ad450667c8f6f983ba4f0d640accdcb49cf (diff)
downloadumosapicpp-1ae302dae3df2cb48c99ebdf407e490dca97d5fd.tar.xz
umosapicpp-1ae302dae3df2cb48c99ebdf407e490dca97d5fd.zip
Merge branch 'restbed_rewrite'
Diffstat (limited to 'db/mongo_access.cpp')
-rw-r--r--db/mongo_access.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/db/mongo_access.cpp b/db/mongo_access.cpp
index 56936f3..a19488e 100644
--- a/db/mongo_access.cpp
+++ b/db/mongo_access.cpp
@@ -1,9 +1,9 @@
#include "mongo_access.h"
-mongo_access::mongo_access(void) {};
-mongo_access::~mongo_access(void) {};
+UmosapiService::mongo_access::mongo_access(void) {};
+UmosapiService::mongo_access::~mongo_access(void) {};
-void mongo_access::configure(mongocxx::uri uri) {
+void UmosapiService::mongo_access::configure(mongocxx::uri uri) {
class noop_logger : public mongocxx::logger {
public:
virtual void operator()(mongocxx::log_level,
@@ -11,6 +11,6 @@ void mongo_access::configure(mongocxx::uri uri) {
bsoncxx::stdx::string_view) noexcept {}
};
- _pool = bsoncxx::stdx::make_unique<mongocxx::pool>(std::move(uri));
- _instance = bsoncxx::stdx::make_unique<mongocxx::instance>(bsoncxx::stdx::make_unique<noop_logger>());
+ UmosapiService::mongo_access::_pool = bsoncxx::stdx::make_unique<mongocxx::pool>(std::move(uri));
+ UmosapiService::mongo_access::_instance = bsoncxx::stdx::make_unique<mongocxx::instance>(bsoncxx::stdx::make_unique<noop_logger>());
}