Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / operations/cip / integerLiteral

Function: integerLiteral()

integerLiteral(value, min, max): string

Defined in: packages/b2c-tooling-sdk/src/operations/cip/sql.ts:127

Validates and returns an integer SQL literal within an inclusive range.

Parameters

value

string

Raw integer string

min

number

Inclusive lower bound

max

number

Inclusive upper bound

Returns

string

The integer rendered as a bare SQL literal

Throws

If the value is not an integer within [min, max]

Released under the Apache-2.0 License.