module ActiveRecord::NullRelation

def any?

def any?
  false
end

def calculate(operation, _column_name)

def calculate(operation, _column_name)
  case operation
  when :count, :sum
    group_values.any? ? Hash.new : 0
  when :average, :minimum, :maximum
    group_values.any? ? Hash.new : nil
  end
end

def delete(_id_or_array)

def delete(_id_or_array)
  0
end

def delete_all

def delete_all
  0
end

def empty?

def empty?
  true
end

def exec_main_query(async: false)

def exec_main_query(async: false)
  [].freeze
end

def exists?(_conditions = :none)

def exists?(_conditions = :none)
  false
end

def many?

def many?
  false
end

def none?

def none?
  true
end

def one?

def one?
  false
end

def or(other)

def or(other)
  other.spawn
end

def pluck(*column_names)

:nodoc:
def pluck(*column_names)
  []
end

def update_all(_updates)

def update_all(_updates)
  0
end