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

Function shimGoType

internal/codegen/golang/opts/shim.go:65–77  ·  view source on GitHub ↗
(o *Override)

Source from the content-addressed store, hash-verified

63}
64
65func shimGoType(o *Override) *ShimGoType {
66 // Note that there is a slight mismatch between this and the
67 // proto api. The GoType on the override is the unparsed type,
68 // which could be a qualified path or an object, as per
69 // https://docs.sqlc.dev/en/v1.18.0/reference/config.html#type-overriding
70 return &ShimGoType{
71 ImportPath: o.GoImportPath,
72 Package: o.GoPackage,
73 TypeName: o.GoTypeName,
74 BasicType: o.GoBasicType,
75 StructTags: o.GoStructTags,
76 }
77}

Callers 1

shimOverrideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected