MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / ReturnName

Method ReturnName

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

Source from the content-addressed store, hash-verified

102}
103
104func (v *QueryValue) ReturnName() string {
105 if v.IsPointer() {
106 return "&" + escape(v.Name)
107 }
108 return escape(v.Name)
109}
110
111func (v QueryValue) UniqueFields() []Field {
112 seen := map[string]struct{}{}

Callers

nothing calls this directly

Calls 2

IsPointerMethod · 0.95
escapeFunction · 0.85

Tested by

no test coverage detected