Module Sequel::FilterHaving
In: lib/sequel/extensions/filter_having.rb

Methods

and   exclude   filter   or  

Public Instance methods

Operate on HAVING clause if HAVING clause already present.

[Source]

    # File lib/sequel/extensions/filter_having.rb, line 21
21:     def and(*cond, &block)
22:       if @opts[:having]
23:         having(*cond, &block)
24:       else
25:         super
26:       end
27:     end

Operate on HAVING clause if HAVING clause already present.

[Source]

    # File lib/sequel/extensions/filter_having.rb, line 30
30:     def exclude(*cond, &block)
31:       if @opts[:having]
32:         exclude_having(*cond, &block)
33:       else
34:         super
35:       end
36:     end

Operate on HAVING clause if HAVING clause already present.

[Source]

    # File lib/sequel/extensions/filter_having.rb, line 39
39:     def filter(*cond, &block)
40:       if @opts[:having]
41:         having(*cond, &block)
42:       else
43:         super
44:       end
45:     end

Operate on HAVING clause if HAVING clause already present.

[Source]

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

[Validate]