mysql icon indicating copy to clipboard operation
mysql copied to clipboard

Parsing into compile-time known data structures

Open anarthal opened this issue 3 years ago • 0 comments

Expose a native API that allows users to parse rows directly into custom, compile-time data structures. E.g.

std::tuple<T1, T2, T3> tuple_row;
resultset.read_one(tuple_row)
struct X
{
    T1 m1;
    T2 m2;
};

BOOST_DESCRIBE_STRUCT(X, (), (m1, m2))

X struct_row;
resultset.read_one(struct_row)

anarthal avatar May 11 '22 10:05 anarthal