
MongoDB
陈帅陪马大大为软件献青春
吾尝终日而思矣 不如须臾之所学也
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
MongoDB用户创建
MongoDB用户创建打开mongo服务 $ sudo ./mongodb/bin/mongod –dbpath ./m17/ –logpath ./mlog/m17.log –fork –port 27017打开mongo客户端 $ ./mongodb/bin/mongo –port 27017 MongoDB shell version: 3.2.6 connecting原创 2016-07-03 10:27:22 · 896 阅读 · 0 评论 -
MongoDB c++ driver(一)
连接数据库#include <mongocxx/client.hpp>#include <mongocxx/instance.hpp>int main(int argc, char** args){ mongocxx::instance inst{};//chenzw:123 -->用户:密码 参考上一篇博客 mongocxx::client conn{mon原创 2016-07-03 11:27:39 · 1450 阅读 · 1 评论 -
MongoDB c++ driver(二)
插入数据#include <mongocxx/client.hpp>#include <mongocxx/instance.hpp>#include <mongocxx/client.hpp>#include <mongocxx/instance.hpp>#include <bsoncxx/builder/stream/document.hpp>#include <bsoncxx/json.原创 2016-07-03 11:38:27 · 947 阅读 · 0 评论 -
MongoDB c++ driver(三)
插入数据(二)多种常用数据插入的写法#include <chrono>#include <sys/time.h>// #include <bsoncxx/types.hpp>#include <bsoncxx/builder/stream/document.hpp>#include <bsoncxx/json.hpp>#include <mongocxx/client.hpp>#includ原创 2016-07-03 11:47:39 · 1717 阅读 · 0 评论 -
MongoDB c++ driver(四)
MongoDB c++ driver(四)简单的查找实现#include <iostream>#include <bsoncxx/builder/stream/document.hpp>#include <bsoncxx/json.hpp>#include <mongocxx/client.hpp>#include <mongocxx/options/find.hpp>#include <mo原创 2016-07-03 14:44:43 · 1749 阅读 · 0 评论 -
MongoDB c++ driver(五)
MongoDB c++ driver(五)查找实现(二)#include <iostream>#include <bsoncxx/builder/stream/document.hpp>#include <bsoncxx/json.hpp>#include <mongocxx/client.hpp>#include <mongocxx/options/find.hpp>#include <mo原创 2016-07-03 15:05:13 · 634 阅读 · 0 评论 -
MongoDB c++ driver(六)
MongoDB c++ driver(六)查找实现(三)#include <iostream>#include <bsoncxx/builder/stream/document.hpp>#include <bsoncxx/json.hpp>#include <mongocxx/client.hpp>#include <mongocxx/options/find.hpp>#include <mo原创 2016-07-03 15:17:44 · 834 阅读 · 0 评论 -
MongoDB c++ driver(七)
MongoDB c++ driver(七)查找实现(四)#include <iostream>#include <mongocxx/client.hpp>#include <mongocxx/instance.hpp>#include <bsoncxx/builder/stream/document.hpp>#include <bsoncxx/json.hpp>using bsoncxx::bu原创 2016-07-03 17:55:58 · 1066 阅读 · 0 评论 -
MongoDB C++ 开发环境搭建
编译使用C++ MongoDB Driver本博客在linux下编译使用C++ MongoDB Driver准备工作GCC 4.8.2+CMake 3.2+ The MongoDB C driver version 1.3.5+boost 1.56+编译安装MongoDB C DriverThe C++ driver uses libbson and the MongoDB C drive原创 2016-07-02 23:10:50 · 1929 阅读 · 0 评论