Sha256: 684b4614f144eaa651d8d76ad3027584067ea168429bd37b57c554a34d39c00a

Contents?: true

Size: 603 Bytes

Versions: 28

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

module TableSync::InstrumentAdapter
  module ActiveSupport
    module_function

    def notify(table:, schema:, event:, direction:, count: 1)
      ::ActiveSupport::Notifications.instrument "tablesync.#{direction}.#{event}",
                                                count: count,
                                                table: table.to_s,
                                                schema: schema.to_s,
                                                event: event,
                                                direction: direction
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
table_sync-2.3.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-2.2.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-2.1.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-2.0.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-1.13.1 lib/table_sync/instrument_adapter/active_support.rb
table_sync-1.13.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-1.12.1 lib/table_sync/instrument_adapter/active_support.rb
table_sync-1.12.0 lib/table_sync/instrument_adapter/active_support.rb