feat(schema): implement purely algebraic schema migration system#1241
Open
Abhishek9639 wants to merge 1 commit intozio:mainfrom
Open
feat(schema): implement purely algebraic schema migration system#1241Abhishek9639 wants to merge 1 commit intozio:mainfrom
Abhishek9639 wants to merge 1 commit intozio:mainfrom
Conversation
12 tasks
deeebfc to
0c643f3
Compare
Author
|
Greeting @jdegoes, all.test.passed.mp4 |
…#519) Implemented a purely algebraic migration system representing schema transformations as first-class, serializable data structures. * Created MigrationAction for 14 actions utilizing DynamicOptic * Implemented DynamicMigration and typed Migration[A, B] wrapper * Added comprehensive ZIO tests for laws and behaviors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #519
/claim #519
Greeting @jdegoes,
Here’s my implementation of the purely algebraic Schema Migration System. I focused on building a reliable, serializable, and reversible system for handling structural schema transformations.
Overview of the Approach
Design Decisions
As mentioned in the issue, I’ve intentionally deferred macro-based selectors (like _.address.street).
Supporting macros that work properly across both Scala 2.13 and Scala 3 is quite complex and deserves its own focused effort. Instead, I prioritized building a solid and fully serializable foundation first (DynamicMigration + DynamicOptic).
This ensures we have a strong core system in place, and it will be easier to add macro based syntax on top later.
Testing & Validation