Sha256: dcc00cd92458a42a8d2cfbf7a28233e67376889326e3ea399bfac7e1e3cb1e4f

Contents?: true

Size: 1.2 KB

Versions: 193

Compression:

Stored size: 1.2 KB

Contents

module ActiveRecord
  module ConnectionAdapters # :nodoc:
    module DatabaseLimits

      # Returns the maximum length of a table alias.
      def table_alias_length
        255
      end

      # Returns the maximum length of a column name.
      def column_name_length
        64
      end

      # Returns the maximum length of a table name.
      def table_name_length
        64
      end

      # Returns the maximum length of an index name.
      def index_name_length
        64
      end

      # Returns the maximum number of columns per table.
      def columns_per_table
        1024
      end

      # Returns the maximum number of indexes per table.
      def indexes_per_table
        16
      end

      # Returns the maximum number of columns in a multicolumn index.
      def columns_per_multicolumn_index
        16
      end

      # Returns the maximum number of elements in an IN (x,y,z) clause.
      # nil means no limit.
      def in_clause_length
        nil
      end

      # Returns the maximum length of an SQL query.
      def sql_query_length
        1048575
      end

      # Returns maximum number of joins in a single query.
      def joins_per_query
        256
      end

    end
  end
end

Version data entries

193 entries across 162 versions & 15 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activerecord-3.2.22.5/lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.22.5 lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.22.4 lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.22.3 lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.22.2 lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.22.1 lib/active_record/connection_adapters/abstract/database_limits.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.22 lib/active_record/connection_adapters/abstract/database_limits.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.21 lib/active_record/connection_adapters/abstract/database_limits.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_limits.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_limits.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_limits.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_limits.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_limits.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.20 lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.19 lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.18 lib/active_record/connection_adapters/abstract/database_limits.rb
activerecord-3.2.17 lib/active_record/connection_adapters/abstract/database_limits.rb