Module: Sequel::CurrentDateTimeTimestamp::DatasetMethods

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

Instance Method Summary collapse

Instance Method Details

#current_datetimeObject

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



30
31
32
# File 'lib/sequel/extensions/current_datetime_timestamp.rb', line 30

def current_datetime
  MAP.fetch(Sequel.datetime_class).now
end