stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.64k stars 1.56k forks source link

Explicit "IS" and "IS NOT" operator #1003

Closed jake-b closed 3 years ago

jake-b commented 4 years ago

Possibly quick/easy feature request:

Sometimes you are comparing an nullable Expression to an optional Value and you explicitly want the "IS" or "IS NOT" operator.

Currently SQLIte.swift will only give you the IS/IS NOT operator if your rhs Value is nil.

I'm not sure the best way to implement this. You could overload another operator such as "===" and "!==" perhaps... But I'm sure there's a too-clever-by-half "swifty" way to do it better.

jake-b commented 4 years ago

I tried my hand at pull request #1019 to implement this request.

nathanfallet commented 3 years ago

Was fixed by your PR. Closing.