Module: Sequel::QueryLiterals

Defined in:
lib/sequel/extensions/query_literals.rb

Overview

The QueryLiterals module can be used to make select, group, and order methods operate similar to the filter methods if the first argument is a plain string, treating it like a literal string, with any remaining arguments treated as placeholder values.

This adds such support to the following methods: select, select_append, select_group, select_more, group, group_and_count, order, order_append, and order_more.

Note that if you pass a block to these methods, it will use the default implementation without the special literal handling.