Module: TableSync::InstrumentAdapter::ActiveSupport

Defined in:
lib/table_sync/instrument_adapter/active_support.rb

Class Method Summary collapse

Class Method Details

.notify(table:, schema:, event:, direction:, count: 1, compress: false) ⇒ Object

rubocop:disable Metrics/ParameterLists



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/table_sync/instrument_adapter/active_support.rb', line 7

def notify( # rubocop:disable Metrics/ParameterLists
  table:,
  schema:,
  event:,
  direction:,
  count: 1,
  compress: false
)
  ::ActiveSupport::Notifications.instrument "tablesync.#{direction}.#{event}",
                                            count:,
                                            table: table.to_s,
                                            schema: schema.to_s,
                                            event:,
                                            direction:,
                                            compress:
end