NOT_EQ

infix fun <T> KQLiteColumn<T>.NOT_EQ(value: T): Clause.Expression

Creates a non-equality comparison expression (!= or IS NOT).

This infix function compares the column to a specified value. It intelligently uses IS NOT for null comparisons and != (or <>) for all other values, which is the standard SQL behavior for checking inequality with NULL.

Example

// Generates: "status" != 'inactive'
Employees.status NOT_EQ "inactive"

// Generates: "manager_id" IS NOT NULL
Employees.managerId NOT_EQ null

Return

An Expression representing the non-equality condition.

Author

MOHAMMAD AZIM ANSARI

Parameters

value

The value to compare the column against. This can be null.

See also


infix fun KQLiteColumn<*>.NOT_EQ(selectStatement: SelectStatement<*>): Clause.Expression