content icon indicating copy to clipboard operation
content copied to clipboard

`SQLOperator` type doesn't include `<=` (less than or equal) or `>=` (greater than or equal)

Open matteason opened this issue 7 months ago • 0 comments

Environment

Version

v3

Reproduction

N/A

Description

The SQLOperator type definition allows the following operators: '=' | '>' | '<' | '<>' | 'IN' | 'BETWEEN' | 'NOT BETWEEN' | 'IS NULL' | 'IS NOT NULL' | 'LIKE' | 'NOT LIKE'

<= and >= are missing from this list but they're supported in SQLite and widely used. They seem to work fine (tested in a queryCollection().where() call), they just cause a type checking error:

Error in IDE reads 'Vue: Argument of type <= is not assignable to parameter of type SQLOperator'

Additional context

No response

Logs


matteason avatar Jun 18 '25 10:06 matteason