Generate Active Model from Two Models' Differences
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 9.9k
- Forks
- 734
- Avg merge
- 6h 36m
- Merged PRs (30d)
- 8
Description
Motivation
The model is serialized then edited by an external editor, which would deserialize back to a new model after editing.
Do a full update is ok, while find the diffs between old and new model for on-demand updating is more clever.
Proposed Solutions
Provide a new method for derive macros like fn create_diff_active_model(old_model: &Model) -> ActiveModel is enough.
Additional Information
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests; start by locating SeaORM's ActiveModel and derive-macro entry points. Clarify how differences between the old and new models should map to an ActiveModel before implementing the proposed create_diff_active_model method. Done means changed fields can be identified for on-demand updates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- database
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100