Sha256: 73d99198510798f32ced85c6cdfb97167ed4a22a44f9bf751e6142eea6d768a6

Contents?: true

Size: 461 Bytes

Versions: 13

Compression:

Stored size: 461 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    module Sqlserver
      module Showplan
        class PrinterXml
          def initialize(result)
            @result = result
          end

          def pp
            xml = @result.rows.first.first
            if defined?(Nokogiri)
              Nokogiri::XML(xml).to_xml indent: 2, encoding: 'UTF-8'
            else
              xml
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
activerecord-sqlserver-adapter-4.1.8 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.0.4 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.1.7 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.0.3 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.1.6 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.0.2 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.1.5 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.1.4 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.0.1 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.1.2 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.1.1 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.1.0 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb
activerecord-sqlserver-adapter-4.0.0 lib/active_record/connection_adapters/sqlserver/showplan/printer_xml.rb