Open
Conversation
added 30 commits
January 9, 2017 17:17
norcal82
reviewed
Jan 20, 2017
lib/dolly/mango/selector.rb
Outdated
| query[SELECTOR][name][first][second] = value | ||
| end | ||
|
|
||
| def operator_value_type_check operator, value |
javierg
reviewed
Jan 20, 2017
|
|
||
| def build_not_equal_selector name, value | ||
| @query[SELECTOR][name][NE_OPERATOR] = value | ||
| def build_exclusive_selector name, value, operator |
rubenrails
reviewed
Jan 25, 2017
lib/dolly/document.rb
Outdated
| def mango_scope scope_name, scope | ||
| self.mango_scopes ||= {} | ||
| name = scope_name.to_sym | ||
| self.mango_scopes[name] = lambda { |query_object, args| Mango::Scope.new(query_object, scope, args)} |
There was a problem hiding this comment.
You could use the new lambda syntax here
self.mango_scopes[name] = ->(query_object, args) { Mango::Scope.new query_object, scope, args }…y into couchdb2-mango-query-interface Conflicts: lib/dolly/query.rb
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The goal of this PR is to define an api for dolly documents to build mango queries as defined here http://docs.couchdb.org/en/2.0.0/api/database/find.html