Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikirasora/migratableserializer
MIGRATABLE data format implement
https://github.com/mikirasora/migratableserializer
Last synced: about 2 months ago
JSON representation
MIGRATABLE data format implement
- Host: GitHub
- URL: https://github.com/mikirasora/migratableserializer
- Owner: MikiraSora
- Created: 2023-07-21T02:36:10.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-28T04:14:09.000Z (over 1 year ago)
- Last Synced: 2024-01-21T18:10:20.417Z (11 months ago)
- Language: C#
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MigratableSerializer
可"迁移更新"的数据结构实现/协议## 需求简介
比如存在早期数据结构Config Ver.N,然后需要更新到Config Ver.N+1的实现,但考虑到更久远的Config 更新和兼容(甚至考虑到向前兼容),
那么就需要一个小小的框架和接口去负责它们之间的迁移和兼容了。此库功能&特色:
* 从Ver.1迁移到Ver.N 的数据结构
* 可以从Ver.N开倒车回Ver.1
* 不需要自己对着一堆版本做判断和hardcode写更新,只需要写好Migration就行
* 对于某个版本的正反序列化,只需要自己写一个IFormatter/IParser即可