Skip to content

Adding reflection #1

@schaumb

Description

@schaumb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions