@terascope/sql-builder / patterns
patterns
Functions
isMatchAllWildcard()
isMatchAllWildcard(
value):boolean
Defined in: patterns.ts:21
Whether a wildcard value matches any value, so no pattern match is needed.
Parameters
| Parameter | Type |
|---|---|
value | unknown |
Returns
boolean
wildcardToLikePattern()
wildcardToLikePattern(
value):string
Defined in: patterns.ts:13
Convert an xLucene wildcard value to a LIKE pattern.
* and ? become % and _. A literal %, _ or \ in the value is escaped, so the
generated SQL always includes ESCAPE '\'. Otherwise bar:100% would match 100anything.
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
string