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

Implement attribute to reorganize data #108

Open
KES777 opened this issue Jun 9, 2023 · 0 comments
Open

Implement attribute to reorganize data #108

KES777 opened this issue Jun 9, 2023 · 0 comments

Comments

@KES777
Copy link

KES777 commented Jun 9, 2023

->selectall_hashref( $q, 'property_id', { Merge=>{} }, @values )
If here two rows with same property_id I would expect:

{
  6699 => {
    inv_num     => [ 'DDFD', 'ASDF' ],
    field2      => [ 7, 333 ],
    property_id => 6699,
  },
}

Or, depending, on requirements: {Merge => 'inv_num'}

{
  6699 => [ 'DDFD', 'ASDF' ],
  3433 => [ 'XYZ',  'ZZZZ' ],
}
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

1 participant