method

preprocess_query

preprocess_query(sql)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 594
        def preprocess_query(sql)
          if write_query?(sql)
            ensure_writes_are_allowed(sql)
            mark_transaction_written
          end

          # We call tranformers after the write checks so we don't add extra parsing work.
          # This means we assume no transformer whille change a read for a write
          # but it would be insane to do such a thing.
          ActiveRecord.query_transformers.each do |transformer|
            sql = transformer.call(sql, self)
          end

          sql
        end