Sha256: 69cca7d467e7647893a5ab14084f15dfa88b2cd30b3df20fa59672122c7a46de

Contents?: true

Size: 747 Bytes

Versions: 68

Compression:

Stored size: 747 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
      private

      # 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

68 entries across 56 versions & 2 rubygems

Version Path
sequel-5.75.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.74.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.73.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.72.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.71.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.70.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.69.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.68.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.67.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.66.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.65.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.64.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.63.0 lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/sequel-5.62.0/lib/sequel/extensions/pg_timestamptz.rb
sequel-5.62.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.61.0 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.60.1 lib/sequel/extensions/pg_timestamptz.rb
sequel-5.60.0 lib/sequel/extensions/pg_timestamptz.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/sequel-5.59.0/lib/sequel/extensions/pg_timestamptz.rb
sequel-5.59.0 lib/sequel/extensions/pg_timestamptz.rb