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

Join helpers for eager collections #496

Open
bennostein opened this issue Nov 7, 2024 · 0 comments
Open

Join helpers for eager collections #496

bennostein opened this issue Nov 7, 2024 · 0 comments
Assignees

Comments

@bennostein
Copy link
Contributor

this can be done with merge now, but it would be nice to provide helpers to do left/outer/inner/right joins on different collections

pikatchu added a commit to pikatchu/skdb that referenced this issue Nov 12, 2024
This diff implements the 'join' operation of two collections.
It is assumed that:
- both collection values are objects (keys can be of any type)
- there never is more than 1 object on boths sides at any time
  unless the option allowNN is passed (which should be rare).

If both those conditions are met, given a key, if the first collection
defines an object of type V1 and the second collection defines an
object V2 for the same key, the resulting collection will associate
{...V1, ...V2} for that key. No value is associated if either side is
missing.
@pikatchu pikatchu self-assigned this Nov 12, 2024
pikatchu added a commit to pikatchu/skdb that referenced this issue Nov 14, 2024
This diff implements the 'join' operation of two collections.
It is assumed that:
- both collection values are objects (keys can be of any type)
- there never is more than 1 object on boths sides at any time
  unless the option allowNN is passed (which should be rare).

If both those conditions are met, given a key, if the first collection
defines an object of type V1 and the second collection defines an
object V2 for the same key, the resulting collection will associate
{...V1, ...V2} for that key. No value is associated if either side is
missing.
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