Sha256: cede94c0aa22f9454e3668deade9637c56089c141fb6901ee5ee9d154a8b9ab3

Contents?: true

Size: 485 Bytes

Versions: 17

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module OpenTracing
    module SqlSanitizer
      class Postgres < Base
        def substitutions
          [
            [PSQL_PLACEHOLDER, "?"],
            [PSQL_VAR_INTERPOLATION, ""],
            [PSQL_AFTER_WHERE, ->(c) { c.gsub(PSQL_REMOVE_STRINGS, "?") }],
            [PSQL_REMOVE_INTEGERS, "?"],
            [PSQL_IN_CLAUSE, "IN (?)"],
            [MULTIPLE_SPACES, " "]
          ]
        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/postgres.rb
activerecord-instrumentation-0.6.1 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.6.1.pre lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.6.0 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.6.0.jhemphill4 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.6.0.jhemphill3 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.6.0.jhemphill2 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.6.0.jhemphill1 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.5.2 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.5.2.pre lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.5.1 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.5.1.pre lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.4.0 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.4.0.jlauer4 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.4.0.jlauer3 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.4.0.jlauer2 lib/active_record/open_tracing/sql_sanitizer/postgres.rb
activerecord-instrumentation-0.4.0.jlauer1 lib/active_record/open_tracing/sql_sanitizer/postgres.rb