The first thing to look at is GitHub's C + + driver project
Https://github.com/mongodb/mongo-cxx-driver
Here is a brief introduction, the current C + + driver is divided into three versions, placed in different branch
Branch |
Stability |
Development |
Purpose |
Master |
Alpha |
In progress |
New c++11 Driver |
Legacy |
Stable |
Stable Evolution |
Primary Stable C + + driver release |
26compat |
Stable |
Maintenance only |
Drop in replacement for users of existing 2.6 era C + + driver |
In simple terms,
If you have the previous code to be compatible, do not want to modify, please use 26compat, compile method reference my Blog
http://blog.csdn.net/csfreebird/article/details/25512251
If you have new code to write, please use legacy
If you want to use master branch inside of the driver, or wait for it. This new driver is still an unstable version. The main purpose is to use the c++11 feature.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
In the face of MongoDB 3.x, what C + + driver