Method: Sequel::SQL::Builders#date_add

Defined in:
lib/sequel/extensions/date_arithmetic.rb

#date_add(expr, interval, opts = OPTS) ⇒ Object

Return a DateAdd expression, adding an interval to the date/timestamp expr. Options:

:cast

Cast to the specified type instead of the default if casting



48
49
50
# File 'lib/sequel/extensions/date_arithmetic.rb', line 48

def date_add(expr, interval, opts=OPTS)
  DateAdd.new(expr, interval, opts)
end