Module: database/repositories/healingRepo

Self-healing history CRUD backed by SQLite.

Source:

Members

(inner) _migrated

Upsert a healing entry.

Source:

Methods

(static) countByTestIds(testIds) → {number}

Count healing entries for specific test IDs.

Parameters:
Name Type Description
testIds Array.<string>
Source:
Returns:
Type
number

(static) countSuccessesByTestIds(testIds) → {number}

Count successful healing entries for specific test IDs.

Parameters:
Name Type Description
testIds Array.<string>
Source:
Returns:
Type
number

(static) deleteByTestIds(testIds)

Delete healing entries for a list of test IDs.

Parameters:
Name Type Description
testIds Array.<string>
Source:

(static) get(key) → {Object|undefined}

Get a healing entry by key.

Parameters:
Name Type Description
key string

— "::::

Source:
Returns:
Type
Object | undefined

(static) getAllAsDict() → {Object.<string, Object>}

Get all healing entries as a dictionary keyed by composite key.

Source:
Returns:
Type
Object.<string, Object>

(static) getByTestId(testId) → {Object.<string, Object>}

Get all healing entries for a specific test (keys starting with "::").

Accepts both raw test IDs ("TC-1") and versioned scope IDs ("TC-1@v2"). When a versioned scope is passed we also query the legacy (unversioned) prefix so that pre-existing healing entries remain readable after upgrading to versioned scopes.

Parameters:
Name Type Description
testId string

— raw test ID or versioned scope ID

Source:
Returns:

Map of "action::label" → entry.

Type
Object.<string, Object>