Sha256: ed94cc7fd12cfea2b954ae856b69a205730154166ebbfcfb6015b3fe2546b378

Contents?: true

Size: 1.01 KB

Versions: 82

Compression:

Stored size: 1.01 KB

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
    private

    # Use same type as used for :Bignum by default for generic integer value.
    def type_literal_generic_integer(column)
      type_literal_generic_bignum_symbol(column)
    end
  end

  Database.register_extension(:integer64, Integer64)
end

Version data entries

82 entries across 70 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/sequel-5.44.0/lib/sequel/extensions/integer64.rb
sequel-5.44.0 lib/sequel/extensions/integer64.rb
sequel-5.43.0 lib/sequel/extensions/integer64.rb
sequel-5.42.0 lib/sequel/extensions/integer64.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/sequel-5.38.0/lib/sequel/extensions/integer64.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/sequel-5.41.0/lib/sequel/extensions/integer64.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/sequel-5.39.0/lib/sequel/extensions/integer64.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/sequel-5.41.0/lib/sequel/extensions/integer64.rb
sequel-5.41.0 lib/sequel/extensions/integer64.rb
sequel-5.40.0 lib/sequel/extensions/integer64.rb
sequel-5.39.0 lib/sequel/extensions/integer64.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/sequel-5.38.0/lib/sequel/extensions/integer64.rb
sequel-5.38.0 lib/sequel/extensions/integer64.rb
sequel-5.37.0 lib/sequel/extensions/integer64.rb
sequel-5.36.0 lib/sequel/extensions/integer64.rb
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/sequel-5.35.0/lib/sequel/extensions/integer64.rb
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/sequel-5.32.0/lib/sequel/extensions/integer64.rb
sequel-5.35.0 lib/sequel/extensions/integer64.rb
sequel-5.34.0 lib/sequel/extensions/integer64.rb
sequel-5.33.0 lib/sequel/extensions/integer64.rb