Sha256: e806f4d3fcb438e22ef0ffcdae1b5d4ffeca6d58a8569346f3e389564e125b54

Contents?: true

Size: 350 Bytes

Versions: 56

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  class EventFormatter
    module Rom
      class SqlFormatter
        def format(payload)
          ["query.#{payload[:name]}", payload[:query], SQL_BODY_FORMAT]
        end
      end
    end
  end
end

Appsignal::EventFormatter.register(
  "sql.dry",
  Appsignal::EventFormatter::Rom::SqlFormatter
)

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
appsignal-3.10.0-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.10.0 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.9.3-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.9.3 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.9.2-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.9.2 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.9.1-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.9.1 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.9.0-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.9.0 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.8.1-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.8.1 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.8.0-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.8.0 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.7.6-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.7.6 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.7.2-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.7.2 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.7.1-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-3.7.1 lib/appsignal/event_formatter/rom/sql_formatter.rb