Skip to main content

Function: rowsToSites()

rowsToSites(rows: SiteRow[]): SiteRow[]

Defined in: electron/services/database/utils/siteMapper.ts:139

Convert multiple database rows to Site objects.

Parameters

rows

SiteRow[]

Array of raw database rows

Returns

SiteRow[]

Array of mapped Site objects

Remarks

Processes multiple database rows using the rowToSite function. Each row is validated and converted independently. If any row fails validation, the entire operation will fail.

Throws

When any database row lacks a valid identifier