Function: addNumberField()
addNumberField(
fieldName
:string
,value
:undefined
|number
,updateFields
:string
[],updateValues
:DbValue
[]):void
Defined in: electron/services/database/utils/valueConverters.ts:93
Add a number field to update arrays if the value is defined.
Parameters
fieldName
string
The database field name to update
value
The number value to add, or undefined to skip
undefined
| number
updateFields
string
[]
Array to append the field update clause
updateValues
DbValue
[]
Array to append the database value
Returns
void
Remarks
Converts the value to a number type for database storage. Only adds the field if the value is not undefined, allowing for optional updates. Zero values are treated as valid and will be included.