class ActiveRecord::OpenTracing::SqlSanitizer::Postgres

Public Instance Methods

substitutions() click to toggle source
# File lib/active_record/open_tracing/sql_sanitizer/postgres.rb, line 7
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