123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::ConnectionAdapters::StatementPool

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, ::Enumerable
Inherits: Object
Defined in: activerecord/lib/active_record/connection_adapters/statement_pool.rb

Class Method Summary

Instance Attribute Summary

::Enumerable - Included

#many?

Returns true if the enumerable has more than 1 element.

Instance Method Summary

::Enumerable - Included

#exclude?

The negative of the Enumerable#include?.

#index_by

Convert an enumerable to a hash.

#sum

Calculates a sum from the elements.

Constructor Details

.new(connection, max = 1000) ⇒ StatementPool

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/statement_pool.rb', line 6

def initialize(connection, max = 1000)
  @connection = connection
  @max        = max
end

Instance Method Details

#[](key)

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/statement_pool.rb', line 19

def [](key)
  raise NotImplementedError
end

#[]=(sql, key)

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/statement_pool.rb', line 27

def []=(sql, key)
  raise NotImplementedError
end

#clear

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/statement_pool.rb', line 31

def clear
  raise NotImplementedError
end

#delete(key)

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/statement_pool.rb', line 35

def delete(key)
  raise NotImplementedError
end

#each

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/statement_pool.rb', line 11

def each
  raise NotImplementedError
end

#key?(key) ⇒ Boolean

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/statement_pool.rb', line 15

def key?(key)
  raise NotImplementedError
end

#length

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/statement_pool.rb', line 23

def length
  raise NotImplementedError
end