Function: rowToSettingValue()
rowToSettingValue(
row:SettingsRow|undefined):string|undefined
Defined in: electron/services/database/utils/settingsMapper.ts:160
Convert a single database row to a setting value.
Parameters
row
Raw database row
SettingsRow | undefined
Returns
string | undefined
Setting value as string or undefined if not found
Remarks
Falsy Value Handling: Preserves all falsy values except null/undefined. Empty strings, 0, and false are converted to their string representations. Only null and undefined values return undefined.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error Propagation: Errors from safeStringify() are propagated to caller
for proper error handling. This typically occurs with circular reference
objects.
Edge Cases:
- Missing
row.valuefield returns undefined - Complex objects are JSON.stringify'd by safeStringify
- Malformed data structures may throw during conversion
Throws
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error When safeStringify conversion fails for complex objects