# sql_expr.rb

Path: | lib/sequel/extensions/sql_expr.rb
Last Update: | Mon Nov 29 07:51:11 +0000 2010

The sql_expr extension adds the sql_expr method to every object, which returns an object that works nicely with Sequel‘s DSL. This is best shown by example:

      1.sql_expr < :a     # 1 < a
      false.sql_expr & :a # FALSE AND a
      true.sql_expr | :a  # TRUE OR a
      ~nil.sql_expr       # NOT NULL
      "a".sql_expr + "b"  # 'a' || 'b'

[Validate]