Sha256: 0d2c314f0d2b70704ff9fedea84cc7ed3b9427ea6f6d8b145374869a06f22ade
Contents?: true
Size: 676 Bytes
Versions: 19
Compression:
Stored size: 676 Bytes
Contents
require 'rom/plugins/relation/instrumentation' module ROM module Plugins module Relation module SQL # @api private module Instrumentation def self.included(klass) super klass.class_eval do include ROM::Plugins::Relation::Instrumentation # @api private def notification_payload(relation) super.merge(query: relation.dataset.sql) end end end end end end end end ROM.plugins do adapter :sql do register :instrumentation, ROM::Plugins::Relation::SQL::Instrumentation, type: :relation end end
Version data entries
19 entries across 19 versions & 1 rubygems