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
sequel-5.17.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.16.0 lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.0.11 vendor/bundle/gems/sequel-5.15.0/lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.0.11 vendor/bundle/gems/sequel-5.11.0/lib/sequel/extensions/pg_timestamptz.rb
sequel-5.15.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.14.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.13.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.12.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.11.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.10.0 lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.0.9 vendor/bundle/gems/sequel-5.9.0/lib/sequel/extensions/pg_timestamptz.rb
sequel-5.9.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.8.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.7.1 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.7.0 lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/sequel-5.6.0/lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.0.8 vendor/bundle/gems/sequel-5.6.0/lib/sequel/extensions/pg_timestamptz.rb
sequel-5.6.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.5.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.4.0 lib/sequel/extensions/pg_timestamptz.rb