module TableSync::InstrumentAdapter::ActiveSupport

Public Instance Methods

notify(table:, schema:, event:, direction:, count: 1) click to toggle source
# File lib/table_sync/instrument_adapter/active_support.rb, line 7
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