Class/Module Index [+]

Quicksearch

Sequel::FilterHaving

Public Instance Methods

and(*cond, &block) click to toggle source

Operate on HAVING clause if HAVING clause already present.

# File lib/sequel/extensions/filter_having.rb, line 20
def and(*cond, &block)
  if @opts[:having]
    having(*cond, &block)
  else
    super
  end
end
exclude(*cond, &block) click to toggle source

Operate on HAVING clause if HAVING clause already present.

# File lib/sequel/extensions/filter_having.rb, line 29
def exclude(*cond, &block)
  if @opts[:having]
    exclude_having(*cond, &block)
  else
    super
  end
end
filter(*cond, &block) click to toggle source

Operate on HAVING clause if HAVING clause already present.

# File lib/sequel/extensions/filter_having.rb, line 38
def filter(*cond, &block)
  if @opts[:having]
    having(*cond, &block)
  else
    super
  end
end
or(*cond, &block) click to toggle source

Operate on HAVING clause if HAVING clause already present.

# File lib/sequel/extensions/filter_having.rb, line 47
def or(*cond, &block)
  if having = @opts[:having]
    cond = cond.first if cond.size == 1
    clone(:having => SQL::BooleanExpression.new(:OR, having, filter_expr(cond, &block)))
  else
    super
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.