only update wrong grants

This commit is contained in:
adlerhurst
2024-12-19 14:21:22 +01:00
parent b51e381149
commit b77541998f
2 changed files with 7 additions and 0 deletions

View File

@@ -601,6 +601,12 @@ func NewCond(name string, value interface{}) Condition {
}
}
func NewUnequalCond(name string, value any) Condition {
return func(param string) (string, []any) {
return name + " <> " + param, []any{value}
}
}
func NewNamespacedCondition(name string, value interface{}) NamespacedCondition {
return func(namespace string) Condition {
return NewCond(namespace+"."+name, value)