|
|
|
@ -42,6 +42,15 @@ interface ReplaceRuleDao { |
|
|
|
|
) |
|
|
|
|
fun findEnabledByScope(name: String, origin: String): List<ReplaceRule> |
|
|
|
|
|
|
|
|
|
@Query("select `group` from replace_rules") |
|
|
|
|
fun observeGroup(): LiveData<List<String>> |
|
|
|
|
|
|
|
|
|
@Query("select * from replace_rules where `group` like '%' || :group || '%'") |
|
|
|
|
fun getByGroup(group: String): List<ReplaceRule> |
|
|
|
|
|
|
|
|
|
@get:Query("select * from replace_rules where `group` = null or `group` = ''") |
|
|
|
|
val noGroup: List<ReplaceRule> |
|
|
|
|
|
|
|
|
|
@get:Query("SELECT COUNT(*) - SUM(isEnabled) FROM replace_rules") |
|
|
|
|
val summary: Int |
|
|
|
|
|
|
|
|
|