mongoose.store.history

class mongoose.store.history.SqliteHistoryManager(session_factory, config)[source]

Bases: object

Manages the size and duration of records in the SQLite database.

__init__(session_factory, config)[source]

Initialize the SqliteHistoryManager.

Parameters:
  • session_factory – A sessionmaker instance.

  • config (HistoryConfiguration) – History limiting configuration.

cleanup(table_class)[source]

Perform cleanup for the specified table based on configuration.

Parameters:

table_class (Type[Base]) – The SQLAlchemy model class (table) to clean up.