(dest reflect.Value, src any)
| 412 | } |
| 413 | |
| 414 | func scanStringSliceValue(dest reflect.Value, src any) error { |
| 415 | dest = reflect.Indirect(dest) |
| 416 | if !dest.CanSet() { |
| 417 | return fmt.Errorf("bun: Scan(non-settable %s)", dest.Type()) |
| 418 | } |
| 419 | |
| 420 | slice, err := decodeStringSlice(src) |
| 421 | if err != nil { |
| 422 | return err |
| 423 | } |
| 424 | |
| 425 | dest.Set(reflect.ValueOf(slice)) |
| 426 | return nil |
| 427 | } |
| 428 | |
| 429 | func decodeStringSlice(src any) ([]string, error) { |
| 430 | if src == nil { |
nothing calls this directly
no test coverage detected
searching dependent graphs…