ormpp
ormpp copied to clipboard
modern C++ ORM, C++17, support mysql, postgresql,sqlite
There is an error when the user try to delete all values of an table. This correction fix this error.
比如对于mysql初始化连接使用dao_t::init 这个连接是单例,建议改成对象初始化方式,这样对于dao_t 可以有多个连接实例,同时去掉了全局状态,现在代码中初始化了后dao_t 类型可在任意地方创建实例引用全局状态,代码有点高耦合。
文档中说: > 注意:execute接口支持的原生sql语句是不带占位符的,是一条完整的sql语句。 能否支持下占位符,与 to be prepared 的参数?
#include "mysql.hpp" 解决 windows 平台直接运行案例报错问题 > error C2065: “mysql”: 未声明的标识符
使用mysql连接池首次客户端连接mysql服务端成功后,不操作大约五分钟,就会无法再连接上。 跟踪代码发现:在pool实例中get时候ping不通,然后重新启动连接。但是连接不上。 在ping不通时候,启动重新连接,代码有bug。如下: 在pool类,成员变量,args_,采用指针存储,重连时候指向的为无效区域,导致重连失败 std::tuple args_; 后面修复成员变量无效问题,但是具体为什么会ping不通,没有找出原因。 服务端设置客户连接时长最长为8小时
windows环境: windows10,vs2017,编译器最新,支持c++17. 问题描述: 例如结构体: struct test_create_table { //__int64 id; //可以 long id; //不可以,编译报错 string name; }; REFLECTION(test_create_table, id, name) void test_creat() { try { dbng mysql; mysql.connect("127.0.0.1", "root", "123456", "test");...
bug fix
#include #include #include using namespace std; template struct package { }; template struct test { static const int value = 0; }; template struct test { static const int value...