not Null
Adds a NOT NULL constraint to the column.
This ensures that the column cannot have a NULL value. The function modifies the column's generic type to a non-nullable T, reflecting the constraint at compile time.
This can be used to pass nullable column to a non-nullable function argument. Virtually acting as non-null type casting.
Example
select(
MIN(
LENGTH(Employees.firstName),
Employees.longCol.notNull(),
)
).execute()Content copied to clipboard
Author
MOHAMMAD AZIM ANSARI
Return
The same KQLiteColumn instance with a non-nullable type, allowing for method chaining.