码迷,mamicode.com
首页 > 数据库 > 详细

面对 MongoDB 3.x ,用什么C++ driver

时间:2015-10-03 14:28:23      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:mongodb

首先要看下github的c++驱动项目

https://github.com/mongodb/mongo-cxx-driver



这里有个简要的介绍,当前C++驱动分成三个版本,放在不同的branch 中

BranchStabilityDevelopmentPurpose
masterAlphaIn progressNew C++11 driver
legacyStableStable EvolutionPrimary stable C++ driver release
26compatStableMaintenance OnlyDrop in replacement for users of existing 2.6 era C++ driver

简单来讲,

如果你有之前的代码要兼容,不想修改,请用26compat, 编译方法参考我的博客

http://blog.csdn.net/csfreebird/article/details/25512251

如果你有新的代码要编写,请用legacy

如果你想用master branch里面的驱动,还是等等吧。这个new driver还是一个不稳定版本。主要目的是使用C++11特性。

版权声明:本文为博主原创文章,未经博主允许不得转载。

面对 MongoDB 3.x ,用什么C++ driver

标签:mongodb

原文地址:http://blog.csdn.net/csfreebird/article/details/48877969

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!