Sha256: be80a57222a5221585490e1d651ec5315418f811d446320cb4a71a851bd350cd

Contents?: true

Size: 732 Bytes

Versions: 40

Compression:

Stored size: 732 Bytes

Contents

# frozen-string-literal: true
#
# The pg_timestamptz extension changes the default timestamp
# type for the database to be +timestamptz+ (+timestamp with time zone+)
# instead of +timestamp+ (+timestamp without time zone+).  This is
# recommended if you are dealing with multiple timezones in your application.
# 
# To load the extension into the database:
#
#   DB.extension :pg_timestamptz
#
# Related module: Sequel::Postgres::Timestamptz

#
module Sequel
  module Postgres
    module Timestamptz
      # Use timestamptz by default for generic timestamp value.
      def type_literal_generic_datetime(column)
        :timestamptz
      end
    end
  end

  Database.register_extension(:pg_timestamptz, Postgres::Timestamptz)
end

Version data entries

40 entries across 37 versions & 2 rubygems

Version Path
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/sequel-5.26.0/lib/sequel/extensions/pg_timestamptz.rb
sequel-5.31.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.30.0 lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/sequel-5.29.0/lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/sequel-5.26.0/lib/sequel/extensions/pg_timestamptz.rb
sequel-5.29.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.28.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.27.0 lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.1.0 vendor/bundle/gems/sequel-5.26.0/lib/sequel/extensions/pg_timestamptz.rb
sequel-5.26.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.25.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.24.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.23.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.22.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.21.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.20.0 lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.0.13 vendor/bundle/gems/sequel-5.18.0/lib/sequel/extensions/pg_timestamptz.rb
sequel-5.19.0 lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.0.12.1 vendor/bundle/gems/sequel-5.18.0/lib/sequel/extensions/pg_timestamptz.rb
sequel-5.18.0 lib/sequel/extensions/pg_timestamptz.rb