ConnectionAdapters::StatementPool
# File lib/active_record/connection_adapters/mysql_adapter.rb, line 102 102: def [](key); cache[key]; end
# File lib/active_record/connection_adapters/mysql_adapter.rb, line 106 106: def []=(sql, key) 107: while @max <= cache.size 108: cache.shift.last[:stmt].close 109: end 110: cache[sql] = key 111: end
# File lib/active_record/connection_adapters/mysql_adapter.rb, line 113 113: def clear 114: cache.values.each do |hash| 115: hash[:stmt].close 116: end 117: cache.clear 118: end
# File lib/active_record/connection_adapters/mysql_adapter.rb, line 104 104: def delete(key); cache.delete(key); end
# File lib/active_record/connection_adapters/mysql_adapter.rb, line 100 100: def each(&block); cache.each(&block); end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.