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

Method NameFor

internal/sql/named/param_set.go:19–22  ·  view source on GitHub ↗

Return the name for a given parameter number and a boolean indicating if it was found.

(idx int)

Source from the content-addressed store, hash-verified

17// Return the name for a given parameter number and a boolean indicating if it
18// was found.
19func (p *ParamSet) NameFor(idx int) (string, bool) {
20 name, ok := p.positionToName[idx]
21 return name, ok
22}
23
24func (p *ParamSet) nextArgNum() int {
25 for {

Callers 2

AnalyzeMethod · 0.80
AnalyzeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected