sqlpp11 icon indicating copy to clipboard operation
sqlpp11 copied to clipboard

Move values out of results

Open MatthieuTexier opened this issue 3 years ago • 4 comments

Hi Roland, I wish I could move non trivial values out of result fields, actually it returns a copy. Regards.

MatthieuTexier avatar Jul 13 '22 05:07 MatthieuTexier

Hi Matthieu,

Sorry for the late reply. I guess this is mostly regarding text values?

Best, Roland

rbock avatar Jul 29 '22 04:07 rbock

Hi Roland, Yes text and blob would be nice. Best. Matthieu

MatthieuTexier avatar Jul 30 '22 05:07 MatthieuTexier

We could probably just add a .move() member to the result_field_base which would yield a _cpp_value_type&&. Probably throw if it is null.

Do you want to give it a try?

rbock avatar Jul 31 '22 06:07 rbock

I will, but don't know when.

MatthieuTexier avatar Aug 02 '22 17:08 MatthieuTexier