mongoDB有两个接口库:mongo-c-driver和mongo-cxx-driver。前者是c代码接口库,后者是c++代码接口库,是在mongo-c-driver的基础上进行二次封装。
1.1、mongo-c-driver:c代码接口库
下载链接:https://github.com/mongodb/mongo-c-driver
最新版本:mongo-c-driver 1.13.0
1.2、mongo-cxx-driver:c++代码接口库,是在mongo-c-driver的基础上进行二次封装
下载链接:https://github.com/mongodb/mongo-cxx-driver
最新版本:MongoDB C++11 Driver 3.4.0
注意:此库需要boost支持
Introduction
The MongoDB C++ Driver is the official client library for C++ applications using the C++11 (or later) standard.
doc
https://docs.mongodb.com/drivers/cxx/
Source Code
https://github.com/mongodb/mongo-cxx-driver/
Installation
1.Installing the mongocxx driver on Windows
http://mongocxx.org/mongocxx-v3/installation/windows/
2.Installing the mongocxx driver on other OS
http://mongocxx.org/mongocxx-v3/installation/