(src any)
| 222 | type CustomRolePermissions []CustomRolePermission |
| 223 | |
| 224 | func (s *APIKeyScopes) Scan(src any) error { |
| 225 | var arr []string |
| 226 | if err := pq.Array(&arr).Scan(src); err != nil { |
| 227 | return err |
| 228 | } |
| 229 | out := make(APIKeyScopes, len(arr)) |
| 230 | for i, v := range arr { |
| 231 | out[i] = APIKeyScope(v) |
| 232 | } |
| 233 | *s = out |
| 234 | return nil |
| 235 | } |
| 236 | |
| 237 | func (s APIKeyScopes) Value() (driver.Value, error) { |
| 238 | arr := make([]string, len(s)) |
nothing calls this directly
no test coverage detected