Skip to main content

@terascope/data-mate / function-configs/string/postal-code-utils

function-configs/string/postal-code-utils

Variables​

POSTAL_PATTERNS​

const POSTAL_PATTERNS: Readonly<Record<string, PostalPattern>>

Defined in: data-mate/src/function-configs/string/postal-code-utils.ts:35

Functions​

postalCodeSQL()​

postalCodeSQL(value, locale, udf): string

Defined in: data-mate/src/function-configs/string/postal-code-utils.ts:166

Parameters​

ParameterType
valuestring
localestring | undefined
udf(value) => string

Returns​

string


postalLocaleApplies()​

postalLocaleApplies(locale): boolean

Defined in: data-mate/src/function-configs/string/postal-code-utils.ts:179

Whether the SQL path handles this locale: none (meaning any), or one in the table.

Parameters​

ParameterType
localeunknown

Returns​

boolean