timshannon / badgerhold

BadgerHold is an embeddable NoSQL store for querying Go types built on Badger
MIT License
515 stars 52 forks source link

Support bolthold-like Contains / ContainsAny / ContainsAll ? #53

Closed omz13 closed 3 years ago

omz13 commented 3 years ago

I'm moving another bit of code that I wrote to use badgerhold instead of bolthold... and I'm a bit stuck because it looks like badgerhold does not implement the Contains / ContainsAny / ContainsAll queries.... can these be moved over?

timshannon commented 3 years ago

Yeah it can be done pretty quickly as soon as I get a chance.

omz13 commented 3 years ago

As a quick workaround for myself I've replaced my use of Contains with some MatchFunc... but Contains is always handy to have because it makes prototyping a bit easier before writing custom MatchFuncs (and we all know how long prototyping code can linger.)

timshannon commented 3 years ago

This is now supported in master.

Thanks,