Higher level database layer for Android?

前端 未结 12 1609
失恋的感觉
失恋的感觉 2020-12-13 04:51

Are there any good database abstraction layers/object relational mappers/ActiveRecord implementations/whatever they are called for Android? I\'m aware that db4o is officiall

12条回答
  •  没有蜡笔的小新
    2020-12-13 05:01

    Try ActiveAndroid. It is free and open source (Apache Version 2.0).

    From the website:

    ActiveAndroid is an active record style ORM (object relational mapper). [...] ActiveAndroid allows you to save and retrieve SQLite database records without ever writing a single SQL statement. Each database record is wrapped neatly into a class with methods like save() and delete().

    [...] Accessing the database is a hassle, to say the least, in Android. ActiveAndroid takes care of all the setup and messy stuff, and all with just a few simple steps of configuration.

提交回复
热议问题