Module | Sequel::SQL::StringMethods |
In: |
lib/sequel/sql.rb
|
This module includes the methods that are defined on objects that can be used in a string context in SQL (Symbol, LiteralString, SQL::Function, and SQL::StringExpression).
This defines the like (LIKE) and ilike methods, used for pattern matching. like is case sensitive (if the database supports it), ilike is case insensitive.
Create a BooleanExpression case insensitive pattern match of self with the given patterns. See StringExpression.like.
# File lib/sequel/sql.rb, line 393 393: def ilike(*ces) 394: StringExpression.like(self, *(ces << {:case_insensitive=>true})) 395: end
Create a BooleanExpression case sensitive (if the database supports it) pattern match of self with the given patterns. See StringExpression.like.
# File lib/sequel/sql.rb, line 399 399: def like(*ces) 400: StringExpression.like(self, *ces) 401: end