stephencelis / SQLite.swift

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

Apply Null in unique constraint #964

Closed Tahia50 closed 4 years ago

Tahia50 commented 4 years ago

Can UNIQUE constraint can be applied without not null constraint in the wrapper? As far as I know sqlite allows null but in the wrapper unique : true makes it NOT NULL. Is there any way without using raw sql?