getQuotedFieldName()
getQuotedFieldName(
fieldName:string,__namedParameters:ValueProcessorOptions,escape?:boolean):string
Defined in: packages/core/src/utils/formatQuery/utils.ts:300
Given a field name and relevant ValueProcessorOptions, returns the field name wrapped in the configured quote character(s).
Unless escape is false, occurrences of the closing quote character within each
identifier part are doubled (standard SQL/MSSQL/MySQL identifier escaping, e.g.
a"b → "a""b"). Unquoted identifiers (no closing quote configured) can't be escaped
and are emitted verbatim.
Parameters
| Parameter | Type | Default value |
|---|---|---|
fieldName | string | undefined |
__namedParameters | ValueProcessorOptions | undefined |
escape? | boolean | true |
Returns
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.