-
Notifications
You must be signed in to change notification settings - Fork 125
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
Enhancement: Add a switch of which value to return (Identity/Primary) during the push operations (Insert, InsertAll, Merge and MergeAll). #1086
Labels
Comments
mikependon
added a commit
that referenced
this issue
Sep 29, 2022
mikependon
added a commit
that referenced
this issue
Oct 2, 2022
mikependon
added a commit
that referenced
this issue
Oct 11, 2022
mikependon
added a commit
that referenced
this issue
Oct 11, 2022
mikependon
added a commit
that referenced
this issue
Oct 12, 2022
mikependon
added a commit
that referenced
this issue
Oct 18, 2022
mikependon
added a commit
that referenced
this issue
Oct 21, 2022
mikependon
added a commit
that referenced
this issue
Oct 21, 2022
Will be available on the next release > RepoDB v1.13.0-alpha2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the enhancement
In the past, RepoDB always return the
Primary
value but an issue has been reported that the scenario is not suited for some cases. At some point, theIdentity
column is not designed asPrimary
column and the library is failing to return the property values.Recently, we have adjusted the behavior of the library (see #1027) where we give priority to the
Identity
column to return the value during the mentioned push operations. Unfortunately, this leaves the prior use-cases to fail if some code of the user has already been written to expect thePrimary
key as the return values.With this, we would like to introduce a switch of what value to return during the mentioned push operations. Below are the options.
Below is the way on how to set the code. (This must only be introduced within #1085)
Or, during the initialization. (Within the #1086)
The text was updated successfully, but these errors were encountered: