当前位置:网站首页>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)(官网原话)
边栏推荐
- Usage of multimeter
- 快手实时数仓保障体系研发实践
- Operation of simulated examination platform of examination question bank for B certificate of Jiangxi provincial safety officer in 2022
- Kotlin coroutine context and scheduler
- 10 reduce common "tricks"
- Yyds dry goods counting solution sword finger offer: adjust the array order so that odd numbers precede even numbers (2)
- 【sdx62】WCN685X IPA注册失败问题分析及解决方案
- 服务可见可观测性
- System status identifier 'hum' for SAP QM inspection lot
- Jerry added an input capture channel [chapter]
猜你喜欢

Activity生命周期

知识经济时代,教会你做好知识管理

Cloud native essay solicitation progress case practice

Seven challenges faced by data scientists and Solutions

Developer survey: rust/postgresql is the most popular, and PHP salary is low

These default routes and static routes can not be configured and deployed. What kind of network workers are they!

Eight major trends in the industrial Internet of things (iiot)

Google waymo proposed r4d: remote distance estimation using reference target

【5G NR】5G NR系统架构

OpenHarmony 1
随机推荐
2022 recurrent training question bank and answers for hoisting signal Rigger (special type of construction work)
Research and development practice of Kwai real-time data warehouse support system
硬件开发笔记(六): 硬件开发基本流程,制作一个USB转RS232的模块(五):创建USB封装库并关联原理图元器件
**Puzzling little problem in unity - light and sky box
快手实时数仓保障体系研发实践
Mysql题目篇
Can inspection results be entered after the completion of inspection lot UD with long-term inspection characteristics in SAP QM?
PM should also learn to reflect every day
[AI player cultivation record] use AI to identify what kind of wealth is next door
2022年烟花爆竹生产单位安全生产管理人员考试题模拟考试题库模拟考试平台操作
Kotlin inheritance, class, overload
首席信息安全官仍然会犯的漏洞管理错误
Jerrys timer0 uses the default pa13 to detect the pulse width [chapter]
美国会参议院推进两党枪支安全法案
位于相同的分布式端口组但不同主机上的虚拟机无法互相通信
杰理之.睡眠以后定时唤醒系统继续跑不复位【篇】
数学之英文写作——基本中英文词汇(几何与三角的常用词汇)
Jerry's infrared filtering [chapter]
kotlin 组合挂起函数
Rasa 3.x 学习系列-非常荣幸成为 Rasa contributors 源码贡献者,和全世界的Rasa源码贡献者共建共享Rasa社区!