|
|
|
@ -34,13 +34,13 @@ interface ReplaceRuleDao { |
|
|
|
|
|
|
|
|
|
@Query( |
|
|
|
|
"""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> |
|
|
|
|
|
|
|
|
|
@Query( |
|
|
|
|
"""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> |
|
|
|
|
|
|
|
|
|