Parent

Class Index [+]

Quicksearch

Arel::Visitors::DB2

Public Instance Methods

add_limit_offset(sql, o) click to toggle source
    # File lib/arel/visitors/db2.rb, line 10
10:       def add_limit_offset(sql, o)
11:         @connection.replace_limit_offset! sql, o.limit, o.offset
12:       end
visit_Arel_Nodes_SelectStatement(o) click to toggle source
   # File lib/arel/visitors/db2.rb, line 4
4:       def visit_Arel_Nodes_SelectStatement o
5:         add_limit_offset([o.cores.map { |x| visit_Arel_Nodes_SelectCore x }.join,
6:          ("ORDER BY #{o.orders.map { |x| visit x }.join(', ')}" unless o.orders.empty?),
7:         ].compact.join(' '), o)
8:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.