Represents constants or psuedo-constants (e.g. CURRENT_DATE) in SQL.
Create a constant with the given value
[Source]
# File lib/sequel/sql.rb, line 1231 1231: def initialize(constant) 1232: @constant = constant 1233: freeze 1234: end
Reference the constant in the Sequel module if there is one that matches.
# File lib/sequel/extensions/eval_inspect.rb, line 106 106: def inspect 107: INSPECT_LOOKUPS.each do |c| 108: return "Sequel::#{c}" if Sequel.const_get(c) == self 109: end 110: super 111: end
[Validate]