AREL support for the JDBC adapter. @see ActiveRecord::ConnectionAdapters::JdbcAdapter
# File lib/arjdbc/jdbc/arel_support.rb, line 113 def bind_substitution(visitor); self.class.bind_substitution(visitor); end
Instantiates a new AREL visitor for this adapter. @note On `ActiveRecord` *2.3* this method won’t be used.
# File lib/arjdbc/jdbc/arel_support.rb, line 107 def new_visitor visitor = self.class.resolve_visitor_type(config) ( prepared_statements? ? visitor : bind_substitution(visitor) ).new(self) end
@override ActiveRecord’s convention
# File lib/arjdbc/jdbc/arel_support.rb, line 117 def unprepared_visitor # super does self.class::BindSubstitution.new self # we do not require the BindSubstitution constant - auto-generated : visitor = self.class.resolve_visitor_type(config) bind_substitution(visitor).new(self) end
Generated with the Darkfish Rdoc Generator 2.