blob: 56936f3bfae4b7fecbe634519611134257668451 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "mongo_access.h"
mongo_access::mongo_access(void) {};
mongo_access::~mongo_access(void) {};
void mongo_access::configure(mongocxx::uri uri) {
class noop_logger : public mongocxx::logger {
public:
virtual void operator()(mongocxx::log_level,
bsoncxx::stdx::string_view,
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>());
}
|