Replies: 2 comments 1 reply
-
Not all SQL database supports this feature. PostgreSQL support this by considering two null values are not equals/same. But in Nitrite, all null values are considered to be same. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you really want to create a separate type of index for this, may be you can roll your own by extending the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes it would be nice to have a nullable unique field. Currently the way to ensure a unique constraint on indexed field(s) should be implemented in two nitrite calls:
OR
)I believe that the unique-constraint of SQL databases supports this use case, and it would be nice to have this included in this library. Maybe a new type of index should be introduce to support this use-case.
Beta Was this translation helpful? Give feedback.
All reactions