bundles / IPython 9.17.0 / IPython / core / history / HistoryAccessor / _run_sql
function
IPython.core.history:HistoryAccessor._run_sql
Signature
def _run_sql(self, sql: str, params: tuple, raw: bool = True, output: bool = False, latest: bool = False) → Iterable[tuple[int, int, InOrInOut]]Summary
Prepares and runs an SQL query for the history database.
Parameters
sql: strAny filtering expressions to go after SELECT ... FROM ...
params: tupleParameters passed to the SQL query (to replace "?")
raw, output: boolSee get_range
latest: boolSelect rows with max (session, line)
Returns
Tuples as: meth:`get_range`
Aliases
IPython.core.history.HistoryAccessor._run_sql