class
CQL::MergeQuery
- CQL::MergeQuery
- Reference
- Object
Overview
The MergeQuery class is responsible for merging the properties of one Query object into another. It encapsulates the logic previously found in Query#merge.
Defined in:
merge_query.crConstructors
-
.new(current_query : Query, other_query : Query)
Initializes a new MergeQuery instance.
Instance Method Summary
-
#execute : Query
Executes the merge operation, modifying
@current_query
in place.
Constructor Detail
Initializes a new MergeQuery instance.
- @param current_query The query to be modified.
- @param other_query The query whose properties will be merged into current_query.
Instance Method Detail
Executes the merge operation, modifying @current_query
in place.
- @return The modified
@current_query
object.