上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: 1、前置条件需要安装好MongoDB的驱动(mongocxx),mongo跑起来。 2、项目包含相关头文件和库,例如: INCLUDEPATH += "/usr/local/include/mongocxx/v_noabi"INCLUDEPATH += "/usr/local/include/bso 阅读全文
posted @ 2021-02-27 17:09 liweikuan 阅读(2179) 评论(0) 推荐(0) 编辑
摘要: 1、使用strcat进行字符串拼接 #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char *firstName = "Theo"; char *lastName = "Tsao"; char *nam 阅读全文
posted @ 2021-02-27 16:42 liweikuan 阅读(1109) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.chinaunix.net/uid-29454152-id-5587541.html 1。C 语言登录mongodb,解决登录失败错误:Authentication failed.: mongoc client_authenticate error 代码如下: 点击(此 阅读全文
posted @ 2021-02-27 16:38 liweikuan 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.sina.com.cn/u/2002809853 最近一段时间要用c语言操作mongodb,但是在网上找到的资料太少,看到的大多数是英文,阅读不大方便,并且要仔细研究才能理解,因此,记录这段时间的学习内容与理解以备忘,同时希望能帮到在寻找这方面内容的童鞋们。 首先,编译 阅读全文
posted @ 2021-02-27 16:19 liweikuan 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/weixin_36367702/article/details/113626907 创建root/admin用户 创建root用户,超级用户角色root。 创建admin用户,所有数据库角色userAdminAnyDatabase。 [root@19 阅读全文
posted @ 2021-02-22 23:27 liweikuan 阅读(1235) 评论(0) 推荐(0) 编辑
摘要: 实现usr增删改查 用户信息增删改查 功能实现步骤: 搭建网站服务器, 实现客户端与服务端的通信 连接数据库, 创建用户集合, 向集合中插入文档 当用户访问/list时, 将所有用户信息查询出来将用户信息和表格HTML进行拼接并将拼接结果响应客户端 实现路由功能 呈现用户列表页面 从数据库中查询用户 阅读全文
posted @ 2021-02-22 23:05 liweikuan 阅读(201) 评论(0) 推荐(1) 编辑
摘要: 转载:https://www.cnblogs.com/SUN99bk/p/12181493.html 快速索引 一、基本定义 二、使用C3P0(数据库连接池)的必要性三、数据库连接池的详细说明 1.JDBC传统模式开发存在的主要问题 四、使用连接池的明显优势 1.资源的高效利用 2.更快的系统反应速 阅读全文
posted @ 2021-02-21 16:16 liweikuan 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Mongodb.h 1 #ifndef MONGODB_H 2 #define MONGODB_H 3 4 #include <bsoncxx/builder/stream/document.hpp> 5 #include <bsoncxx/types.hpp> 6 #include <mongoc 阅读全文
posted @ 2021-02-04 23:29 liweikuan 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 搭建VS2019+MongoDB的运行环境 涉及:编译boost库, 编译mongo-c-diver,编译mongo-cxx-diver, 配置VS2019. 总结的文档 https://github.com/liweikuan123/VS-QT-MongoDB-.git Windows VS201 阅读全文
posted @ 2021-02-02 19:13 liweikuan 阅读(1949) 评论(1) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_36401567/article/details/105472240 无法打开 源 文件 “ui_QtGuiApplicationx.h” 新建一个QT项目时显示无法打开源 文件 “ui_QtGuiApplicationx.h”(如图一所示), 阅读全文
posted @ 2021-01-31 02:08 liweikuan 阅读(623) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页