objectbox / objectbox-go

Embedded Go Database, the fast alternative to SQLite, gorm, etc.
https://objectbox.io
Apache License 2.0
1.07k stars 46 forks source link

Query: OR condition #26

Closed alecpetrosky closed 4 years ago

alecpetrosky commented 4 years ago

I know that Java's version of Objectbox supports OR condition in queries. Does Go version offers the same functionality at the moment?

vaind commented 4 years ago

Yes, they're combined using objectbox.Any() to create a "condition group", see https://github.com/objectbox/objectbox-go/blob/master/test/query_test.go#L660

alecpetrosky commented 4 years ago

Thank you very much for the clarification!