问题描述
我评估GreenDAO考虑在商业Android应用程序,我会努力,想确定迁移路径架构更新。
我是正确的断言,我会写一个自定义的OpenHelper而根据新的模式提供的OnUpdate(),并提取转换和存储数据?这一假设提出了各地的电话和责任划分排序一些有趣的问题。
我一直没能找到各地的架构更新和数据迁移的任何文档GreenDAO。
下面是一大堆博客文章我已经写了关于这一主题:
- Review greenDAO 的
- Part 1 - 架构生成
- Part 2 - 架构迁移
- Part 3 - 测试模式迁移
您正确的假设。没有变化的今天不同的模式版本之间的跟踪。因此,你需要写doinng模式升级当SQL自己。
I'm evaluating GreenDAO for consideration in a commercial Android app I will be working on and wanted to determine the migration path for schema updates.
Am I correct in asserting that I would have to write a custom OpenHelper which provides the onUpdate() and extracts transforms and stores data according to the new schema? This assumption raises some interesting questions around ordering of calls and partitioning of responsibility.
I have not been able to find any documentation around schema update and data migration for GreenDAO.
Here are a bunch of blog articles I have written on this topic:
- Review of greenDAO
- Part 1 – Schema Generation
- Part 2 – Schema Migration
- Part 3 – Testing Schema Migration
You assumed correctly. There is no change tracking between different schema versions today. Thus you need to write SQL yourself when doinng schema upgrades.
这篇关于GreenDAO架构更新和数据迁移?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!