def log_database_query(options)
      return do_nothing_on_null(:log_database_query) if null?
      Utils.require_key(options, :begin_time)
      Utils.require_key(options, :end_time)
      Utils.require_non_empty_key(options, :query)

      name = options[:name] || 'SQL'
      begin_time = options[:begin_time]
      end_time = options[:end_time]
      query = options[:query]

      @transaction.log_activity(next_database_query_name,
        begin_time, end_time, "#{name}\n#{query}")
    end
def log_database_query(options)
      return do_nothing_on_null(:log_database_query) if null?
      Utils.require_key(options, :begin_time)
      Utils.require_key(options, :end_time)
      Utils.require_non_empty_key(options, :query)

      name = options[:name] || 'SQL'
      begin_time = options[:begin_time]
      end_time = options[:end_time]
      query = options[:query]

      @transaction.log_activity(next_database_query_name,
        begin_time, end_time, "#{name}\n#{query}")
    end
Logs a database query that was performed during the request.

 @option options [String] :name (optional) A name for this database
   query activity. Default: "SQL"
 @option options [TimePoint or Time] :begin_time The time at which this
   database query begun. See {UnionStationHooks.now} to learn more.
 @option options [TimePoint or Time] :end_time The time at which this
   database query ended. See {UnionStationHooks.now} to learn more.
 @option options [String] :query The database query string.