// // Created by dongl on 23-5-29. // #ifndef IM2_DB_BASE_H #define IM2_DB_BASE_H #include #include #include #include using bsoncxx::builder::basic::kvp; using bsoncxx::builder::basic::make_array; using bsoncxx::builder::basic::make_document; class db_base { public: db_base(); mongocxx::pool::entry acquire(); bsoncxx::stdx::optional try_acquire(); public: // 命中 库 表 mongocxx::collection hit_db_coll(const std::string& db_name, const std::string& coll); private: mongocxx::pool* pool = nullptr; }; #endif //IM2_DB_BASE_H