Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move values out of results #449

Open
MatthieuTexier opened this issue Jul 13, 2022 · 4 comments
Open

Move values out of results #449

MatthieuTexier opened this issue Jul 13, 2022 · 4 comments

Comments

@MatthieuTexier
Copy link

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

@rbock
Copy link
Owner

rbock commented Jul 29, 2022

Hi Matthieu,

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

Best,
Roland

@MatthieuTexier
Copy link
Author

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

@rbock
Copy link
Owner

rbock commented Jul 31, 2022

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?

@MatthieuTexier
Copy link
Author

I will, but don't know when.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants