提交 07f4bd5b 编写于 作者: R Rafael Mendonça França

StatementCache is private API

It should not be used in applications
上级 fd8cbcef
......@@ -13,10 +13,10 @@ module ActiveRecord
#
# The relation returned by the block is cached, and for each +execute+ call the cached relation gets duped.
# Database is queried when +to_a+ is called on the relation.
class StatementCache
class Substitute; end
class StatementCache # :nodoc:
class Substitute; end # :nodoc:
class Query
class Query # :nodoc:
def initialize(sql)
@sql = sql
end
......@@ -26,7 +26,7 @@ def sql_for(binds, connection)
end
end
class PartialQuery < Query
class PartialQuery < Query # :nodoc:
def initialize values
@values = values
@indexes = values.each_with_index.find_all { |thing,i|
......@@ -51,11 +51,11 @@ def self.partial_query(visitor, ast, collector)
PartialQuery.new collected
end
class Params
class Params # :nodoc:
def bind; Substitute.new; end
end
class BindMap
class BindMap # :nodoc:
def initialize(bind_values)
@indexes = []
@bind_values = bind_values
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册