Sha256: d75df8c4ed974bcfd4746476b2adab6b1b9313eef941e5e6d3e90dd7bfd79484

Contents?: true

Size: 483 Bytes

Versions: 17

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module OpenTracing
    module SqlSanitizer
      class Mysql < Base
        def substitutions
          [
            [MYSQL_VAR_INTERPOLATION, ""],
            [MYSQL_REMOVE_SINGLE_QUOTE_STRINGS, "?"],
            [MYSQL_REMOVE_DOUBLE_QUOTE_STRINGS, "?"],
            [MYSQL_REMOVE_INTEGERS, "?"],
            [MYSQL_IN_CLAUSE, "IN (?)"],
            [MULTIPLE_QUESTIONS, "?"]
          ]
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
activerecord-instrumentation-0.6.2 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.6.1 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.6.1.pre lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.6.0 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.6.0.jhemphill4 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.6.0.jhemphill3 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.6.0.jhemphill2 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.6.0.jhemphill1 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.5.2 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.5.2.pre lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.5.1 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.5.1.pre lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.4.0 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.4.0.jlauer4 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.4.0.jlauer3 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.4.0.jlauer2 lib/active_record/open_tracing/sql_sanitizer/mysql.rb
activerecord-instrumentation-0.4.0.jlauer1 lib/active_record/open_tracing/sql_sanitizer/mysql.rb