You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be great to have a wrapper class such that one can have a Comparer collect the difference between say two record's or other supported type. This would also walk the nested collection and say use a ., [x] or => notation for the hierarchy, array/set elements or maps.
A Use Case: CDC you have the before and after image from your database of choice and need detect what changes happen between them, so some conditional biz logic can be applied based upon that.
That this generator avoids reflection means it will also work with AoT compilation.
The text was updated successfully, but these errors were encountered:
diegofrata
changed the title
Feature Request: Would be great to be able to enumerate the priorities that are different!
Feature Request: Would be great to be able to enumerate the properties that are different!
Apr 23, 2023
How do you show the difference between string? Do a Myers diff?
What about byte[] or string[]? And is char[] treated as a string?
Then you have DateOnly, what is the result there? And the list goes on.
I love the idea but two things come to my mind;
This is very opinionated and quickly gets tied to business rules and logic.
It can quickly grow complex it probably deserves its own package, Generator.Diffs
Perhaps it is the wording, but my understanding is that this is a feature request to enumerate inequalities but not necessarily create diffs. I think that would be a reasonable feature to have, although I totally agree diffs are out of scope for this library.
Would be great to have a wrapper class such that one can have a Comparer collect the difference between say two
record
's or other supported type. This would also walk the nested collection and say use a.
,[x]
or=>
notation for the hierarchy, array/set elements or maps.A Use Case: CDC you have the before and after image from your database of choice and need detect what changes happen between them, so some conditional biz logic can be applied based upon that.
That this generator avoids reflection means it will also work with AoT compilation.
The text was updated successfully, but these errors were encountered: