Function: prepareUnsignedint()
Call Signature
ts
function prepareUnsignedint(
key: string,
value: unknown,
nullable: true,
): number | null;Prepares an unsigned integer value for database storage with nullable support
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | The field name for error reporting |
value | unknown | The value to prepare |
nullable | true | Whether the field can be null |
Returns
number | null
The prepared unsigned integer value or null if nullable and value is null
Throws
E_INVALID_PREPARED_VALUE when the value cannot be prepared
Call Signature
ts
function prepareUnsignedint(
key: string,
value: unknown,
nullable?: false,
): number;Prepares an unsigned integer value for database storage with nullable support
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | The field name for error reporting |
value | unknown | The value to prepare |
nullable? | false | Whether the field can be null |
Returns
number
The prepared unsigned integer value or null if nullable and value is null
Throws
E_INVALID_PREPARED_VALUE when the value cannot be prepared