Module: ROM::SQL::ActiveSupportInstrumentation

Defined in:
lib/rom/sql/extensions/active_support_notifications.rb

Instance Method Summary collapse

Instance Method Details

#log_connection_yield(sql, _conn, args = nil) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/rom/sql/extensions/active_support_notifications.rb', line 9

def log_connection_yield(sql, _conn, args = nil)
  ActiveSupport::Notifications.instrument(
    "sql.rom",
    sql: sql,
    name: instrumentation_name,
    binds: args
  ) { super }
end