sqlbrite
2017-04-20 22:37:09 0 举报
sqlbrite源码解读 by cppgohan
作者其他创作
大纲/内容
QueryObservable
UpdateT1
BriteDatabase
PublishSubjectSet
transactions : ThreadLocal
\"T2\"
BriteContentResolver
SQLiteOpenHelper
wrapDatabaseHelper()
Query
QueryObservable: T1
包装对triggers返回的Observable的订阅
cppgohan 2017
SQLiteTransactionListener
Observable
BriteDatabase.Transaction t1 = db.newTransaction();try { BriteDatabase.Transaction t2 = db.newTransaction(); try { BriteDatabase.Transaction t3 = db.newTransaction(); try { // operation with in t3 t3.markSuccessful(); } finally { t3.end(); } // operation with in t2 t2.markSuccessful(); } finally { t2.end(); } // operation in t1 t1.markSuccessful();} finally { t1.end();}
\"T1\"
PublishSubject : triggers
contentResolver
parent
sqlbrite 源码解读
SqlBrite
UpdateT2
不同颜色代表不同的 sql 语句
SqliteTransaction
T1T2
subscribe()
QueryObservable: T2
粗边代表 subscribe() 时候的第一个 Query 对象.
代表不同的filter
wrapContentProvider()
Timeline:
CLIENT
createQuery()
triggers
rx.Observable
triggers.filter().map().startWith().observeOn()...
helper
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容