Sha256: e8d630276a0a13631e0dbf146142957fe23d863e696ed099d42cdaf0ad5a7c26

Contents?: true

Size: 1005 Bytes

Versions: 10

Compression:

Stored size: 1005 Bytes

Contents

# frozen-string-literal: true
#
# The integer64 extension changes the default type used for Integer
# to be the same type as used for :Bignum.  In general, this means that
# instead of Integer resulting in a 32-bit database integer type, it will
# result in a 64-bit database integer type.  This affects the default
# type used for primary_key and foreign_key when using the schema
# modification methods.
#
# Note that it doesn't make sense to use this extension on SQLite, since
# the integer type will automatically handle 64-bit integers, and it treats
# the integer type specially when the column is also the primary key.
# 
# To load the extension into the database:
#
#   DB.extension :integer64
#
# Related module: Sequel::Integer64

#
module Sequel
  module Integer64
    # Use timestamptz by default for generic timestamp value.
    def type_literal_generic_integer(column)
      type_literal_generic_bignum_symbol(column)
    end
  end

  Database.register_extension(:integer64, Integer64)
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
tdiary-5.0.11 vendor/bundle/gems/sequel-5.11.0/lib/sequel/extensions/integer64.rb
sequel-5.13.0 lib/sequel/extensions/integer64.rb
sequel-5.12.0 lib/sequel/extensions/integer64.rb
sequel-5.11.0 lib/sequel/extensions/integer64.rb
sequel-5.10.0 lib/sequel/extensions/integer64.rb
tdiary-5.0.9 vendor/bundle/gems/sequel-5.9.0/lib/sequel/extensions/integer64.rb
sequel-5.9.0 lib/sequel/extensions/integer64.rb
sequel-5.8.0 lib/sequel/extensions/integer64.rb
sequel-5.7.1 lib/sequel/extensions/integer64.rb
sequel-5.7.0 lib/sequel/extensions/integer64.rb