Elements of Android Room

简介:
本地存储数据是许多Android应用程序的关键部分。SQLite内置于Android中,但Android SDK提供的低级API使用起来有点笨拙。Google的解决方案是Room,一个围绕该API的对象包装器。这为我们的数据库操作提供了一个更干净,类型安全,响应式的API。Room是Android Jetpack的一部分,因此它是Google推荐的用于构建Android应用程序的 “堆栈” 技术的关键元素。这本书探索了房间,从基本的东西开始:
将房间添加到您的应用程序定义您的实体和数据访问操作 (DAO) api测试您的数据库I/O将Room与Kotlin协程、LiveData和RxJava结合使用随着应用的发展迁移数据库架构
它还会进入更复杂的场景,例如使用SQLCipher for Android加密您的房间数据库。
英文简介:
Storing data locally is a key part of many Android apps. SQLite is built into Android, but the low-level API that the Android SDK provides is a bit clunky to use.
Google's solution for that is Room, an object wrapper around that API. This gives us a cleaner, type-safe, reactive API for our database operations. Room is part of the Android Jetpack, and so it is a key element of Google’s recommended “stack” of technologies for building Android apps.
This book explores Room, starting with basic stuff like:
Adding Room to your appDefining your entities and data access operation (DAO) APIsTesting your database I/OUsing Room with Kotlin coroutines, LiveData, and RxJavaMigrating your database schema as your app evolves
It also gets into more elaborate scenarios, such as using SQLCipher for Android for encrypting your Room database.
- 书名
- Elements of Android Room
- 译名
- Android Room 的元素
- 语言
- 英语
- 年份
- 2021
- 页数
- 265页
- 大小
- 1.99 MB
- 下载
Elements of Android Room.pdf
- 密码
- 65536
最后更新:2025-04-12 23:57:58
←Android on x86: An Introduction to Optimizing for Intel Architecture