drogonframework / drogon

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

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

Open HadesD opened 2 years ago

HadesD commented 2 years 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 6 months ago

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