fnc12 / sqlite_orm

❤️ SQLite ORM light header only library for modern C++
GNU Affero General Public License v3.0
2.19k stars 305 forks source link

Ability to specify a table reference for the object iteration interface #1310

Closed trueqbit closed 2 weeks ago

trueqbit commented 2 weeks ago

Originally, I wanted to extend the ‘table reference’ feature to the iteration of objects:

struct Object {};
constexpr auto object_table = c<Object>();
auto storage = make_storage("", make_table<object_table>());
storage.iterate<object_table>();

This PR also includes changes and improvements to the object iterator: