当前位置:网站首页>greendao使用问题
greendao使用问题
2022-06-24 12:59:00 【shuangrenlong】
集成
GreenDao使用详解、封装、优化升级_Mr_ChenXu的博客-CSDN博客
记得用api 可以传递到app模块
问题:只能在本moudle里新建bean 生产相应的beandao ,app里面不行,怎么解?
也就是说封装成sdk,会有问题,app。不做成sdk可以直接放在 moudle里面。相应的实体也是在这个moudle
封装
https://www.csdn.net/tags/OtTacg0sOTI2NTItYmxvZwO0O0OO0O0O.html
封装篇——DataBase数据库整理(greenDao示例) - 百度文库
android_sqlite数据库从基础到SDK封装_dapan728的博客-CSDN博客
Room
另一个比较主流也是Google官方比较推荐的数据库框架, 和greenDao比较类似, 更优点是其sql语句,编译时编译器会做检查,整体使用上也更方便
其官方文档如下
https://developer.android.google.cn/training/data-storage/room
Room 在 SQLite 上提供了一个抽象层,以便在充分利用 SQLite 的强大功能的同时,能够流畅地访问数据库。
我们强烈建议您使用 Room(而不是 SQLite)(官网原话)
边栏推荐
- Ti Xing Shu'an joined the dragon lizard community to jointly create a network security ecosystem
- 杰理之增加一个输入捕捉通道【篇】
- Operation of simulated examination platform for examination questions of coal production and operation units (safety production management personnel) in 2022
- Vulnerability management mistakes that CIOs still make
- Goldfish rhca memoirs: do447 managing projects and conducting operations -- creating a project for ansible scripts
- 源码解析 Handler 面试宝典
- Goldfish rhca memoirs: do447 manage lists and credentials -- create machine credentials for the access list host
- 黄楚平主持召开定点联系珠海工作视频会议 坚决落实省委部署要求 确保防疫情、稳经济、保安全取得积极成效
- 居家办公更要高效-自动化办公完美提升摸鱼时间 | 社区征文
- kotlin 继承、类、重载
猜你喜欢

Hands on data analysis unit 3 model building and evaluation

首席信息安全官仍然会犯的漏洞管理错误

HarmonyOS-3

HarmonyOS.2
![Jerry's serial port receiving IO needs to set the digital function [chapter]](/img/04/48e7da42101a53827463d479952f67.png)
Jerry's serial port receiving IO needs to set the digital function [chapter]
![[R language data science] (XIV): random variables and basic statistics](/img/87/3606041a588ecc615eb8013cdf9fb1.png)
[R language data science] (XIV): random variables and basic statistics

2022年质量员-设备方向-岗位技能(质量员)复训题库及在线模拟考试

【R语言数据科学】(十四):随机变量和基本统计量

10 reduce common "tricks"

杰理之串口接收 IO 需要设置数字功能【篇】
随机推荐
kotlin 继承、类、重载
Kotlin composite suspend function
每日一题day8-515. 在每个树行中找最大值
Rasa 3.x 学习系列-非常荣幸成为 Rasa contributors 源码贡献者,和全世界的Rasa源码贡献者共建共享Rasa社区!
HarmonyOS-3
Kotlin keyword extension function
Explain kubernetes backup and recovery tools velero | learn more about carina series phase III
源码解析 Handler 面试宝典
How to avoid serious network security accidents?
Hands on data analysis unit 3 model building and evaluation
Detailed explanation of kotlin collaboration lanch
Kotlin coroutine context and scheduler
kotlin 匿名函数 与 Lambda
记录一次Mongotemplate的And和Or的各种套
redis 数据类型详解
How to manage tasks in the low code platform of the Internet of things?
MySQL interview questions
The first open source MySQL HTAP database in China will be released soon, and the three highlights will be notified in advance
Use of kotlin arrays, collections, and maps
Coinbase will launch the first encryption derivative for individual investors