Module: NoSE::StatementSupportQuery
- Included in:
- Connection, Delete, Insert, Update
- Defined in:
- lib/nose/statements.rb
Overview
Extend Statement objects to allow them to generate support queries
Instance Method Summary collapse
-
#modifies_index?(index) ⇒ Boolean
Determine if this statement modifies a particular index.
-
#support_queries(_index) ⇒ Array<SupportQuery>
Support queries required to updating the given index with this statement.
Instance Method Details
#modifies_index?(index) ⇒ Boolean
Determine if this statement modifies a particular index
563 564 565 |
# File 'lib/nose/statements.rb', line 563 def modifies_index?(index) !(@settings.map(&:field).to_set & index.all_fields).empty? end |
#support_queries(_index) ⇒ Array<SupportQuery>
Support queries required to updating the given index with this statement
569 570 571 |
# File 'lib/nose/statements.rb', line 569 def support_queries(_index) [] end |