NoACLConverter should be used when the target SQL table does not contain group or user ACL columns.
()
| 145 | // NoACLConverter should be used when the target SQL table does not contain |
| 146 | // group or user ACL columns. |
| 147 | func NoACLConverter() *sqltypes.VariableConverter { |
| 148 | matcher := sqltypes.NewVariableConverter().RegisterMatcher( |
| 149 | resourceIDMatcher(), |
| 150 | organizationOwnerMatcher(), |
| 151 | userOwnerMatcher(), |
| 152 | ) |
| 153 | matcher.RegisterMatcher( |
| 154 | sqltypes.AlwaysFalse(groupACLMatcher(matcher)), |
| 155 | sqltypes.AlwaysFalse(userACLMatcher(matcher)), |
| 156 | ) |
| 157 | |
| 158 | return matcher |
| 159 | } |
| 160 | |
| 161 | func DefaultVariableConverter() *sqltypes.VariableConverter { |
| 162 | matcher := sqltypes.NewVariableConverter().RegisterMatcher( |