mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Improve debug logging for reconciliation.
This commit is contained in:
committed by
Cody Henthorne
parent
c19017f037
commit
9021883baa
@@ -338,6 +338,10 @@ class SelectBuilderPart3(
|
||||
return SelectBuilderPart4b(db, columns, tableName, where, whereArgs, "$offset,$limit")
|
||||
}
|
||||
|
||||
fun groupBy(groupBy: String): SelectBuilderPart4c {
|
||||
return SelectBuilderPart4c(db, columns, tableName, where, whereArgs, groupBy)
|
||||
}
|
||||
|
||||
fun run(): Cursor {
|
||||
return db.query(
|
||||
SupportSQLiteQueryBuilder
|
||||
@@ -405,6 +409,27 @@ class SelectBuilderPart4b(
|
||||
}
|
||||
}
|
||||
|
||||
class SelectBuilderPart4c(
|
||||
private val db: SupportSQLiteDatabase,
|
||||
private val columns: Array<String>,
|
||||
private val tableName: String,
|
||||
private val where: String,
|
||||
private val whereArgs: Array<String>,
|
||||
private val groupBy: String
|
||||
) {
|
||||
|
||||
fun run(): Cursor {
|
||||
return db.query(
|
||||
SupportSQLiteQueryBuilder
|
||||
.builder(tableName)
|
||||
.columns(columns)
|
||||
.selection(where, whereArgs)
|
||||
.groupBy(groupBy)
|
||||
.create()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
class SelectBuilderPart5(
|
||||
private val db: SupportSQLiteDatabase,
|
||||
private val columns: Array<String>,
|
||||
|
||||
Reference in New Issue
Block a user