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

Method hasRetType

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

Source from the content-addressed store, hash-verified

270}
271
272func (q Query) hasRetType() bool {
273 scanned := q.Cmd == metadata.CmdOne || q.Cmd == metadata.CmdMany ||
274 q.Cmd == metadata.CmdBatchMany || q.Cmd == metadata.CmdBatchOne
275 return scanned && !q.Ret.isEmpty()
276}
277
278func (q Query) TableIdentifierAsGoSlice() string {
279 escapedNames := make([]string, 0, 3)

Callers 5

filterUnusedStructsFunction · 0.80
interfaceImportsMethod · 0.80
queryImportsMethod · 0.80
copyfromImportsMethod · 0.80
batchImportsMethod · 0.80

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected