Method: Hyperion::Sqlite::QueryBuilderStrategy#apply_limit_and_offset
- Defined in:
- lib/hyperion/sqlite/query_builder_strategy.rb
permalink #apply_limit_and_offset(sql_query, limit, offset) ⇒ Object
[View source]
9 10 11 12 13 |
# File 'lib/hyperion/sqlite/query_builder_strategy.rb', line 9 def apply_limit_and_offset(sql_query, limit, offset) limit = limit || 9223372036854775807 offset = offset || 0 sql_query.append("LIMIT ?, ?", [offset, limit]) end |