Methods

Class Index [+]

Quicksearch

Sequel::SQL::StringMethods

This module includes the like and ilike methods used for pattern matching that are defined on objects that can be used in a string context in SQL (Symbol, LiteralString, SQL::GenericExpression).

Public Instance Methods

ilike(*ces) click to toggle source

Create a BooleanExpression case insensitive pattern match of the receiver with the given patterns. See StringExpression.like.

  :a.ilike('A%') # "a" ILIKE 'A%'
     # File lib/sequel/sql.rb, line 794
794:       def ilike(*ces)
795:         StringExpression.like(self, *(ces << {:case_insensitive=>true}))
796:       end
like(*ces) click to toggle source

Create a BooleanExpression case sensitive (if the database supports it) pattern match of the receiver with the given patterns. See StringExpression.like.

  :a.like('A%') # "a" LIKE 'A%'
     # File lib/sequel/sql.rb, line 802
802:       def like(*ces)
803:         StringExpression.like(self, *ces)
804:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.