In the face of MongoDB 3.x, what C + + driver

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.