class method self.new

Ruby on Rails 5.2.8.1

Since v3.2.22.5 Last seen in v7.0.10

Available in: v3.2.22.5 v4.0.13 v4.1.16 v4.2.9 v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10

Signature

self.new(connection, logger, connection_options, config)

No documentation comment.

Parameters

connection req
logger req
connection_options req
config req
Source
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 53
      def initialize(connection, logger, connection_options, config)
        super(connection, logger, config)

        @statements = StatementPool.new(self.class.type_cast_config_to_integer(config[:statement_limit]))

        if version < "5.1.10"
          raise "Your version of MySQL (#{version_string}) is too old. Active Record supports MySQL >= 5.1.10."
        end
      end

Defined in activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb line 53 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter

Type at least 2 characters to search.

↑↓ navigate · open · esc close