drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.03k stars 1.06k forks source link

`drogon::orm::Model` support set value like: `UPDATE account SET point=point+1000;` #1316

Open HadesD opened 1 year ago

HadesD commented 1 year ago

Like the title, currently, drogon::orm 's Model only support set value type that match with datatype of column I think we should implement overload function to auto gen models

Thanks

hwc0919 commented 1 month ago

What's the problem with current api? Just modify the field and call update().