Method: Bmg::Sql::Processor::LimitOffset#on_select_exp
- Defined in:
- lib/bmg/sql/processor/limit_offset.rb
#on_select_exp(sexpr) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/bmg/sql/processor/limit_offset.rb', line 20 def on_select_exp(sexpr) sexpr = builder.from_self(sexpr) if obc = sexpr.limit_or_offset? limit_clause = builder.limit_clause(limit) offset_clause = builder.offset_clause(offset) sexpr.with_push(limit_clause, offset_clause) end |