Sha256: 8ab02f302ab3032e6f65409b18785b2e6771612544c7537cbf3b15520fa44f6c

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

module Datewari
  class Paginator
    class Postgresql < Base
      self.cast_function = 'TO_CHAR'
      self.date_format = { yearly:  'YYYY-01-01',
                           monthly: 'YYYY-MM-01',
                           weekly:  'IYYY-IW',
                           daily:   'YYYY-MM-DD' }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datewari-1.1.1 lib/datewari/paginator/postgresql.rb