http://satyan.github.io/sugar/
不错,就是文档太恶心鸟
http://greendao-orm.com/features/
http://greendao-orm.com/documentation/how-to-get-started/
还是greenDao吧。
相比greenDao用的应该比较多,稳定,性能好,但是太麻烦,学习成本高,还要code generate,没时间研究
https://github.com/pardom/ActiveAndroid
还是这个把,文档齐全,可以Bulk Insert,不错,看看
update
http://stackoverflow.com/questions/22997326/activeandroid-update-query
http://www.cnblogs.com/GarfieldTom/p/3877077.html
http://blog.csdn.net/djun100/article/details/23352129
https://dl.google.com/dl/android/studio/install/1.0.1/android-studio-bundle-135.1641136.exe
Whenever your schema changes you need to increment the database version number, either through Configuration
or AA_DB_VERSION meta-data. If new classes are added, ActiveAndroid will automatically add them to the database. If you want to change something in an existing table however (e.g. add or delete a column), this is done using sql-scripts named <NewVersion>.sql
, where NewVersion is the AA_DB_VERSION, inassets/migrations
.
ActiveAndroid will execute a script if its filename is greater than the old database-version and smaller or equal to the new version.
Let’s assume you added a column color
to the Items
table. You now need to increase AA_DB_VERSION to 2 and provide a script 2.sql
.
ALTER TABLE Items ADD COLUMN color INTEGER;
来源:oschina
链接:https://my.oschina.net/u/99250/blog/372449