Function: mapRowToMonitor()
mapRowToMonitor(
row:MonitorRow):Monitor
Defined in: electron/services/database/utils/schema/dynamicSchema.ts:755
Maps a database row to a monitor object, including dynamic fields.
Parameters
row
Database row to convert.
Returns
Monitor object with all properties mapped.
Remarks
Converts database values to JavaScript types.
The monitors table stores the monitoring state as the SQLite enabled column
(1/0). This is mapped to Monitor.monitoring.
Example
const monitor = mapRowToMonitor(row);