Class: ActiveRecord::ConnectionAdapters::StatementPool

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
activerecord/lib/active_record/connection_adapters/statement_pool.rb

Instance Method Summary collapse

Methods included from Enumerable

#as_json, #each_with_object, #exclude?, #group_by, #index_by, #many?, #sum

Constructor Details

#initialize(connection, max = 1000) ⇒ StatementPool



6
7
8
9
# 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) ⇒ Object

Raises:

  • (NotImplementedError)


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

def [](key)
  raise NotImplementedError
end

#[]=(sql, key) ⇒ Object

Raises:

  • (NotImplementedError)


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

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

#clearObject

Raises:

  • (NotImplementedError)


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

def clear
  raise NotImplementedError
end

#delete(key) ⇒ Object

Raises:

  • (NotImplementedError)


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

def delete(key)
  raise NotImplementedError
end

#eachObject

Raises:

  • (NotImplementedError)


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

def each
  raise NotImplementedError
end

#key?(key) ⇒ Boolean

Raises:

  • (NotImplementedError)


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

def key?(key)
  raise NotImplementedError
end

#lengthObject

Raises:

  • (NotImplementedError)


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

def length
  raise NotImplementedError
end