Skip to main content

getSQLConcat()

getSQLConcat(concatOperator?: string): (...values: string[]) => string

Defined in: packages/core/src/utils/formatQuery/utils.ts:61

Returns a preset-aware SQL string-concatenation function. Emits CONCAT(a, b, ...) when concatOperator is "CONCAT" (case-insensitive), otherwise joins with the infix operator (e.g. a || b, a + b).

Parameters

ParameterTypeDefault value
concatOperatorstring'||'

Returns

(...values: string[]) => string


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.