tables.uniquevalidator.md

January 18, 2023 ยท View on GitHub

Home > @datashaper/tables > uniqueValidator

uniqueValidator() function

Constructs a function that validates a column against the unique constraint.

Signature:

export declare function uniqueValidator(field: Field, includeIndexes: boolean): ValidationFunction | undefined;

Parameters

ParameterTypeDescription
fieldField
includeIndexesboolean

Returns:

ValidationFunction | undefined