You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you implement/use reflection to reduce the Low amount of boilerplate code based on boost::pfr?
I created a method that can be used to get the names of aggregate-type members. See here.
If we assume that the class's first member (or named with id, or const member(s?)) is the primary key, the Table objects are unnecessary (Table can be named after the type).
So the final "initialization" can be:
auto connection = Connection<orm_type_1, orm_type_2>{}; // without Table, pure classes
The text was updated successfully, but these errors were encountered:
Can you implement/use reflection to reduce the
Low amount of boilerplate code
based onboost::pfr
?I created a method that can be used to get the names of aggregate-type members. See here.
If we assume that the class's first member (or named with id, or
const
member(s?)) is the primary key, theTable
objects are unnecessary (Table can be named after the type).So the final "initialization" can be:
The text was updated successfully, but these errors were encountered: