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-6.5.1 lib/table_sync/instrument_adapter/active_support.rb
table_sync-6.5.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-6.4.2 lib/table_sync/instrument_adapter/active_support.rb
table_sync-6.4.1 lib/table_sync/instrument_adapter/active_support.rb
table_sync-6.4.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-6.3.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-6.1.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-6.0.4 lib/table_sync/instrument_adapter/active_support.rb
table_sync-6.0.3 lib/table_sync/instrument_adapter/active_support.rb
table_sync-6.0.2 lib/table_sync/instrument_adapter/active_support.rb
table_sync-6.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-5.1.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-5.0.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-4.2.2 lib/table_sync/instrument_adapter/active_support.rb
table_sync-4.2.1 lib/table_sync/instrument_adapter/active_support.rb
table_sync-4.2.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-4.1.3 lib/table_sync/instrument_adapter/active_support.rb
table_sync-4.1.1 lib/table_sync/instrument_adapter/active_support.rb
table_sync-4.1.0 lib/table_sync/instrument_adapter/active_support.rb
table_sync-4.0.0 lib/table_sync/instrument_adapter/active_support.rb