Function: addBooleanField()
addBooleanField(
fieldName:string,value:boolean|undefined,updateFields:string[],updateValues:DbValue[]):void
Defined in: electron/services/database/utils/valueConverters.ts:35
Add a boolean field to update arrays if the value is defined.
Parameters
fieldName
string
The database field name to update
value
The boolean value to add, or undefined to skip
boolean | undefined
updateFields
string[]
Array to append the field update clause
updateValues
DbValue[]
Array to append the database value
Returns
void
Remarks
Converts boolean values to database-compatible integers (1 for true, 0 for false). Only adds the field if the value is not undefined, allowing for optional updates.