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

Method Type

internal/codegen/golang/query.go:86–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func (v QueryValue) Type() string {
87 if v.Typ != "" {
88 return v.Typ
89 }
90 if v.Struct != nil {
91 return v.Struct.Name
92 }
93 panic("no type for QueryValue: " + v.Name)
94}
95
96func (v *QueryValue) DefineType() string {
97 t := v.Type()

Callers 6

DefineTypeMethod · 0.95
filterUnusedStructsFunction · 0.80
interfaceImportsMethod · 0.80
queryImportsMethod · 0.80
copyfromImportsMethod · 0.80
batchImportsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected