Skip to main content

Interface: SetHistoryLimitParams

Defined in: electron/services/database/historyLimitManager.ts:34

Parameters for setting history limit

Properties

databaseService

databaseService: DatabaseService;

Defined in: electron/services/database/historyLimitManager.ts:38

Database service for transactions


limit

limit: number;

Defined in: electron/services/database/historyLimitManager.ts:43

The limit to set


logger?

optional logger?: BaseLogger;

Defined in: electron/services/database/historyLimitManager.ts:48

Logger instance


repositories

repositories: {
history: HistoryRepository;
settings: SettingsRepository;
}

Defined in: electron/services/database/historyLimitManager.ts:53

Repository instances

history

history: HistoryRepository;

settings

settings: SettingsRepository;

rules

rules: HistoryLimitRules;

Defined in: electron/services/database/historyLimitManager.ts:61

History retention business rules to apply when normalizing the limit.


setHistoryLimit

setHistoryLimit: (limit: number) => void;

Defined in: electron/services/database/historyLimitManager.ts:71

Callback to update the internal history limit

Parameters

limit

number

Returns

void

Remarks

This callback updates the in-memory history limit value after the database transaction commits so runtime state cannot drift from persistence when settings writes or pruning fail.