MCPcopy Index your code
hub / github.com/aarondl/sqlboiler / Scan

Method Scan

types/array.go:1022–1034  ·  view source on GitHub ↗

Scan implements the sql.Scanner interface.

(src any)

Source from the content-addressed store, hash-verified

1020
1021// Scan implements the sql.Scanner interface.
1022func (a *DecimalArray) Scan(src any) error {
1023 switch src := src.(type) {
1024 case []byte:
1025 return a.scanBytes(src)
1026 case string:
1027 return a.scanBytes([]byte(src))
1028 case nil:
1029 *a = nil
1030 return nil
1031 }
1032
1033 return fmt.Errorf("boil: cannot convert %T to DecimalArray", src)
1034}
1035
1036func (a *DecimalArray) scanBytes(src []byte) error {
1037 elems, err := scanLinearArray(src, []byte{','}, "DecimalArray")

Callers

nothing calls this directly

Calls 1

scanBytesMethod · 0.95

Tested by

no test coverage detected