MCPcopy Index your code
hub / github.com/lib/pq / scanLinearArray

Function scanLinearArray

array.go:894–903  ·  view source on GitHub ↗
(src, del []byte, typ string)

Source from the content-addressed store, hash-verified

892}
893
894func scanLinearArray(src, del []byte, typ string) (elems [][]byte, err error) {
895 dims, elems, err := parseArray(src, del)
896 if err != nil {
897 return nil, err
898 }
899 if len(dims) > 1 {
900 return nil, fmt.Errorf("pq: cannot convert ARRAY%s to %s", strings.Replace(fmt.Sprint(dims), " ", "][", -1), typ)
901 }
902 return elems, err
903}

Callers 7

scanBytesMethod · 0.85
scanBytesMethod · 0.85
scanBytesMethod · 0.85
scanBytesMethod · 0.85
scanBytesMethod · 0.85
scanBytesMethod · 0.85
scanBytesMethod · 0.85

Calls 1

parseArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…