module Sequel::CurrentDateTimeTimestamp::DatasetMethods

Public Instance Methods

current_datetime() click to toggle source

Return an instance of Sequel.datetime_class that will be literalized as CURRENT_TIMESTAMP.

# File lib/sequel/extensions/current_datetime_timestamp.rb, line 34
def current_datetime
  MAP.fetch(Sequel.datetime_class).now
end