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

Created a method Query.Match that returns whether a query matches a data item. #107

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

zond
Copy link
Contributor

@zond zond commented Feb 3, 2024

I am working on a library that will provide subscription semantics to a badgerhold storage.

The subscriptions will be defined as "whatever matches a badgerhold Query".

To know if a subscriber should be updated when an insert/delete/update happens, I need to check if the item matches a Query.

The simplest way I could figure out of doing that is this PR.

What do you think, is this an acceptable solution? I'd be happy to discuss and modify my PR until you're happy with it.

@zond zond force-pushed the master branch 3 times, most recently from dd3ab65 to 7f7609b Compare February 3, 2024 22:57
Copy link
Owner

@timshannon timshannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These all need to point at the main branch, not your repo

@zond
Copy link
Contributor Author

zond commented Feb 7, 2024

Sorry, my git expertise is lacking. It did point to your main branch when I created the PR, but since then I updated things to make it work locally.

Does it look better now?

@timshannon timshannon merged commit bc5ee1d into timshannon:master Feb 7, 2024
1 check passed
@timshannon
Copy link
Owner

Looks great. Thanks for the PR.

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

Successfully merging this pull request may close these issues.

2 participants