class_docstr: Information about an executed query. Returned by :func:`get_recorded_queries`.
  
  .. versionchanged:: 3.0
      Renamed from ``_DebugQueryTuple``.
  
  .. versionchanged:: 3.0
      Changed to a dataclass instead of a tuple.
  
  .. versionchanged:: 3.0
      ``context`` is renamed to ``location``.
code: def duration(self) -> float:
      return self.end_time - self.start_time
  
file_path: flask-sqlalchemy/src/flask_sqlalchemy/record_queries.py
imports: from __future__ import annotations
  import dataclasses
  import inspect
  import typing
  from time import perf_counter
  import sqlalchemy
  import sqlalchemy.event
  from flask import current_app
  from flask import g
  from flask import has_app_context
label_desc: Use image node_id 1 for calling the _QueryInfo obj's underlying member method code with example usage: obj.duration() and returns: unknown