Skip to main content

Interface: SetHistoryLimitParams

Defined in: electron/utils/database/historyLimitManager.ts:22

Parameters for setting history limit

Properties

databaseService

databaseService: DatabaseService

Defined in: electron/utils/database/historyLimitManager.ts:26

Database service for transactions


limit

limit: number

Defined in: electron/utils/database/historyLimitManager.ts:31

The limit to set


logger?

optional logger: Logger

Defined in: electron/utils/database/historyLimitManager.ts:36

Logger instance


repositories

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

Defined in: electron/utils/database/historyLimitManager.ts:41

Repository instances

history

history: HistoryRepository

settings

settings: SettingsRepository


setHistoryLimit()

setHistoryLimit: (limit: number) => void

Defined in: electron/utils/database/historyLimitManager.ts:55

Callback to update the internal history limit

Parameters

limit

number

Returns

void

Remarks

This callback updates the in-memory history limit value immediately, providing synchronous access for other components while the database update happens asynchronously. Should be called before database operations to ensure consistency between memory and database state.