Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

feat: Add multi-tag support to mem DB #3242

Merged
merged 1 commit into from
May 16, 2022

Conversation

bstasyszyn
Copy link
Contributor

The mem DB now supports queries with multiple tags using the '&&' operator.

Signed-off-by: Bob Stasyszyn Bob.Stasyszyn@securekey.com

The mem DB now supports queries with multiple tags using the '&&' operator.

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
@codecov
Copy link

codecov bot commented May 16, 2022

Codecov Report

Merging #3242 (1c797f6) into main (d5971ce) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #3242   +/-   ##
=======================================
  Coverage   88.74%   88.75%           
=======================================
  Files         309      309           
  Lines       41727    41752   +25     
=======================================
+ Hits        37030    37055   +25     
  Misses       3421     3421           
  Partials     1276     1276           
Impacted Files Coverage Δ
component/storageutil/mem/mem.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5971ce...1c797f6. Read the comment docs.

@fqutishat fqutishat merged commit 0ba3492 into hyperledger-archives:main May 16, 2022
})

t.Run("Invalid value for tag -> no results", func(t *testing.T) {
iterator, err := store.Query("TagName1:TagValueX")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is a valid tag value, it's just that there happens to be no results. When I think of an "invalid" tag value, I think of one that contains a : character, for instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess I shouldn't have said 'invalid'. Instead, non-matching.

@bstasyszyn bstasyszyn deleted the memstoremultitag branch May 16, 2022 15:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants