class CQL::MergeQuery

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(current_query : Query, other_query : Query) #

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.

[View source]

Instance Method Detail

def execute : Query #

Executes the merge operation, modifying @current_query in place.

  • @return The modified @current_query object.

[View source]