Module: Sequel::SQL::StringMethods
- Included in:
- ComplexExpressionMethods, StringExpression
- Defined in:
- lib/sequel_core/sql.rb
Overview
This module includes the methods that are defined on objects that can be used in a numeric context in SQL (Symbol, LiteralString, SQL::Function, and SQL::StringExpression).
This defines the like (LIKE) method, used for pattern matching.
Instance Method Summary collapse
-
#ilike(*ces) ⇒ Object
Create a BooleanExpression case insensitive pattern match of self with the given patterns.
-
#like(*ces) ⇒ Object
Create a BooleanExpression case sensitive pattern match of self with the given patterns.
Instance Method Details
#ilike(*ces) ⇒ Object
Create a BooleanExpression case insensitive pattern match of self with the given patterns. See StringExpression.like.
287 288 289 |
# File 'lib/sequel_core/sql.rb', line 287 def ilike(*ces) StringExpression.like(self, *(ces << {:case_insensitive=>true})) end |
#like(*ces) ⇒ Object
Create a BooleanExpression case sensitive pattern match of self with the given patterns. See StringExpression.like.
293 294 295 |
# File 'lib/sequel_core/sql.rb', line 293 def like(*ces) StringExpression.like(self, *ces) end |