|
|
@ -34,13 +34,13 @@ interface ReplaceRuleDao { |
|
|
|
|
|
|
|
|
|
|
|
@Query( |
|
|
|
@Query( |
|
|
|
"""SELECT * FROM replace_rules WHERE isEnabled = 1 |
|
|
|
"""SELECT * FROM replace_rules WHERE isEnabled = 1 |
|
|
|
AND (scope LIKE '%' || :scope || '%' or scope = null or scope = '')""" |
|
|
|
AND (scope LIKE '%' || :scope || '%' or scope is null or scope = '')""" |
|
|
|
) |
|
|
|
) |
|
|
|
fun findEnabledByScope(scope: String): List<ReplaceRule> |
|
|
|
fun findEnabledByScope(scope: String): List<ReplaceRule> |
|
|
|
|
|
|
|
|
|
|
|
@Query( |
|
|
|
@Query( |
|
|
|
"""SELECT * FROM replace_rules WHERE isEnabled = 1 |
|
|
|
"""SELECT * FROM replace_rules WHERE isEnabled = 1 |
|
|
|
AND (scope LIKE '%' || :name || '%' or scope LIKE '%' || :origin || '%' or scope = null or scope = '')""" |
|
|
|
AND (scope LIKE '%' || :name || '%' or scope LIKE '%' || :origin || '%' or scope is null or scope = '')""" |
|
|
|
) |
|
|
|
) |
|
|
|
fun findEnabledByScope(name: String, origin: String): List<ReplaceRule> |
|
|
|
fun findEnabledByScope(name: String, origin: String): List<ReplaceRule> |
|
|
|
|
|
|
|
|
|
|
|