# File src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_rails/lib/union_station_hooks_rails/active_record_subscriber.rb, line 27
    def sql(event)
      reporter = Thread.current[:union_station_hooks]
      return if !reporter

      UnionStationHooks.call_event_pre_hook(event)
      reporter.log_database_query(
        :begin_time => event.time,
        :end_time => UnionStationHooks.now,
        :query => event.payload[:sql]
      )
    end