Skip to main content

valueMatchesType

@webda/sql


Function: valueMatchesType()

valueMatchesType(value, type): boolean

Defined in: packages/sql/src/relational/comparison.ts:31

Whether a WebdaQL value has the JavaScript type a column holds: strings and dates for the text kinds, dates and date texts for the time kinds, numbers for the numeric kinds, booleans for boolean

Parameters​

value​

unknown

the compared value

type​

ColumnType

the column type

Returns​

boolean

true when the value can be compared natively