New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UNIQUE #967
Comments
Yes, so far that's the only way, but we're considering to support some kind of annotation for field value uniqueness |
Just to be curious. Do you have a use case for this that isn't already covered by using @PrimaryKey? |
The problem was solved. Only after the introduction of a unique field in the table, we had to alter the program logic. |
That happens because you don't set your unique field. If you did you would not have to use standalone objects |
Ok. |
@emanuelez sorry I'm confused, would you mind giving a little code snippet of what you are talking about? |
But I cited above code that used prior to the introduction to the table a unique field, and after it. Now you have to write one line of code to add more new rows to a table. |
SQLite also has different modes for conflict resolution when it comes to uniqueness constraints we can consider: https://www.sqlite.org/lang_conflict.html |
👍 waiting for this enhancement :) |
@beeender @cmelchior Is this feature coming anytime soon? |
Realm is lacking important feature. realm even has no compound key. so we have to calculate compound key manually.so in practical development, realm is useless. |
@cmelchior now that Primary Keys also imply that the value cannot be changed once persisted, is there a chance for a |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Any news on this, I'm still waiting for this feature |
+1 |
I want to make field 'itemName' of Table Item to be unique in Android Realm. It means 'itemName' should not contain duplicate values. Is there any other way to achieve this except Primary key.. Thanks.. |
+1 |
+1, and i need it on realm-cocoa too. |
+1 |
2 similar comments
+1 |
+1 |
+1 |
just for sake of completion, apparently ObjectBox 2.0 added |
@Zhuinden This is |
No, they are two completely different products from two completely different companies. To be honest, I'm not fond of ObjectBox's migration scheme, so I'm not using it; but they are working on the same domain as Realm. So it makes sense that Realm should be aware of competition. |
+1 |
+1 too |
+1 |
Unique two fields - when? |
+1 |
1 similar comment
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
2 similar comments
+1 |
+1 |
Is there any roadmap for this? |
How to determine the class that the field name unique? Just as Primary keys?
The text was updated successfully, but these errors were encountered: