ormpp icon indicating copy to clipboard operation
ormpp copied to clipboard

modern C++ ORM, C++17, support mysql, postgresql,sqlite

Results 33 ormpp issues
Sort by recently updated
recently updated
newest added

每次查询前都是以下面代码获取 conn ``` auto& pool = connection_pool::instance(); auto conn = pool.get(); if (nullptr == conn) { XLOG_ERROR("get sql connection failed"); return std::nullopt; } conn_guard guard(conn); ``` 初始化代码 ``` auto& pool...

struct GbsUser { using Ptr = std::shared_ptr; int32_t index = 0; std::string id; std::string username; std::string password; std::string role; bool enable = false; std::string creator; long long update_ts = 0;...

c++20编译报错,iguana库报错,std::numeric_limits::max报error C2589: “(”:“::”右边的非法标记,应该是max和min被宏定义了就会出现。 iguana更新到最新应该可以解决。

现在还没有增加DATETIME类型的计划吗?或者我们能提交增加了DATETIME类型的代码吗?

![G88L(5E{JY5YI}$}1NLWUM6](https://user-images.githubusercontent.com/19475140/233609777-1c09b36e-c979-4ebc-a26b-ad3489b7939a.jpg) ![03EXKNH1U( LZL~`})EOXWL](https://user-images.githubusercontent.com/19475140/233609811-347f9064-cea6-4280-a22a-b7834bf48773.jpg)

struct Title { int t; std::string code; }; struct person { int id; std::string name; int age; Title title; }; 这时候 REFLECTION是什么样子的?

1、使用FID查询不能获取到正确的结果,我查阅了其他issue,有一条可能是你优化query("")结果,在序列化generate_query_sql中去掉了where_sql的赋值操作,导致通过FID查询序列化时最终的sql没有where关键字而导致查询失败; 2、我可以通过修改generate_query_sql中关于where_sql的赋值来解决这个问题,但通过`query("where code = 5")`这种方式就需要同时调整为`query("code = 5")`去掉**where**关键字。而且这样做之后,对上面我提到的那个issue的修改就会失效,即`query("")`拿不到结果;

### Good Idea to use reflection in ORM, but need the package management, better use cmake with git submodule. [This demo ](https://github.com/simdjson/cmakedemo) looks good.

``` namespace abc{ struct person { int id; std::string name; int age; }; } REFLECTION(abc::person, id, name, age) ```