module Sequel::CurrentDateTimeTimestamp::DatasetMethods

  1. lib/sequel/extensions/current_datetime_timestamp.rb

Methods

Public Instance

  1. current_datetime

Public Instance methods

current_datetime()

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

[show source]
   # File lib/sequel/extensions/current_datetime_timestamp.rb
34 def current_datetime
35   (Sequel.datetime_class == ::Time ? Time : DateTime).now
36 end