Class: ActiveRecord::ConnectionAdapters::StatementPool

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

Instance Method Summary collapse

Constructor Details

#initialize(connection, max = 1000) ⇒ StatementPool

Returns a new instance of StatementPool.



6
7
8
9
# File '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 'lib/active_record/connection_adapters/statement_pool.rb', line 19

def [](key)
  raise NotImplementedError
end

#[]=(sql, key) ⇒ Object

Raises:

  • (NotImplementedError)


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

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

#clearObject

Raises:

  • (NotImplementedError)


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

def clear
  raise NotImplementedError
end

#delete(key) ⇒ Object

Raises:

  • (NotImplementedError)


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

def delete(key)
  raise NotImplementedError
end

#eachObject

Raises:

  • (NotImplementedError)


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

def each
  raise NotImplementedError
end

#key?(key) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

def key?(key)
  raise NotImplementedError
end

#lengthObject

Raises:

  • (NotImplementedError)


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

def length
  raise NotImplementedError
end