MCPcopy
hub / github.com/sqlc-dev/sqlc / Scan

Method Scan

internal/endtoend/testdata/enum/mysql/go/models.go:68–78  ·  view source on GitHub ↗
(src interface{})

Source from the content-addressed store, hash-verified

66)
67
68func (e *UsersShoeSize) Scan(src interface{}) error {
69 switch s := src.(type) {
70 case []byte:
71 *e = UsersShoeSize(s)
72 case string:
73 *e = UsersShoeSize(s)
74 default:
75 return fmt.Errorf("unsupported scan type for UsersShoeSize: %T", src)
76 }
77 return nil
78}
79
80type NullUsersShoeSize struct {
81 UsersShoeSize UsersShoeSize

Callers 15

GetAccountByNameMethod · 0.45
SelectTestMethod · 0.45
SelectTestMethod · 0.45
MathMethod · 0.45
MathMethod · 0.45
MathMethod · 0.45
PercentileMethod · 0.45
PercentileMethod · 0.45
PlusPositionalCastMethod · 0.45
PlusPositionalCastMethod · 0.45
PlusPositionalCastMethod · 0.45
SelectVectorMethod · 0.45

Calls 1

UsersShoeSizeTypeAlias · 0.85

Tested by

no test coverage detected