Skip to main content

Function: rowToSite()

rowToSite(row: SiteRow): SiteRow

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

Convert a database row to a Site object (without monitors).

Parameters

row

SiteRow

Raw database row to convert

Returns

SiteRow

Site object with validated fields

Remarks

Handles type conversion and ensures consistent data transformation across all site-related database operations. Validates that the identifier is present and valid before creating the site object.

Throws

When the database row lacks a valid identifier