MCPcopy Create free account
hub / github.com/uptrace/bun / scanStringSliceValue

Function scanStringSliceValue

dialect/pgdialect/array.go:414–427  ·  view source on GitHub ↗
(dest reflect.Value, src any)

Source from the content-addressed store, hash-verified

412}
413
414func 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
429func decodeStringSlice(src any) ([]string, error) {
430 if src == nil {

Callers

nothing calls this directly

Calls 2

decodeStringSliceFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…