mongocxx
mongocxx c++ 14标准,进行多表联合查询
#include <mongocxx/client.hpp>#include <mongocxx/instance.hpp>#include <mongocxx/uri.hpp>#include <bsoncxx/builder/stream/document.hpp>#include <bsonc ......
c++连接mongocxx,将代码进行类封装
这里需要注意一个事情,就是instance必须变成全局类 #ifndef GET_DATA_HPP #define GET_DATA_HPP #include <iostream> #include <string> #include <vector> #include "conf.hpp" #in ......