MCPcopy Index your code
hub / github.com/ipython/ipython / _writeout_input_cache

Method _writeout_input_cache

IPython/core/history.py:1050–1056  ·  view source on GitHub ↗
(self, conn: sqlite3.Connection)

Source from the content-addressed store, hash-verified

1048 self.save_flag.set()
1049
1050 def _writeout_input_cache(self, conn: sqlite3.Connection) -> None:
1051 with conn:
1052 for line in self.db_input_cache:
1053 conn.execute(
1054 "INSERT INTO history VALUES (?, ?, ?, ?)",
1055 (self.session_number,) + line,
1056 )
1057
1058 def _writeout_output_cache(self, conn: sqlite3.Connection) -> None:
1059 with conn:

Callers 1

writeout_cacheMethod · 0.95

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected