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

Support use_tomap everywhere #367

Open
DifferentialOrange opened this issue Jun 13, 2023 · 0 comments
Open

Support use_tomap everywhere #367

DifferentialOrange opened this issue Jun 13, 2023 · 0 comments
Labels
2sp customer feature A new functionality

Comments

@DifferentialOrange
Copy link
Member

crud.pairs has use_tomap option allowing to return tuples as key-value maps instead of arrays, since there is no way to do unflatten_rows while calling pairs.

But this feature seems useful by itself. @WeCodingNow had reported that he uses crud.pairs():totable() instead of crud.select since it is impossible to write an oneliner that returns tuples as key-value maps with crud.select. There doesn't seem to be any harm in implementing use_tomap, so let's support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2sp customer feature A new functionality
Projects
None yet
Development

No branches or pull requests

4 participants