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

Method nextArgNum

internal/sql/named/param_set.go:24–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24func (p *ParamSet) nextArgNum() int {
25 for {
26 if _, ok := p.positionToName[p.argn]; !ok {
27 return p.argn
28 }
29
30 p.argn++
31 }
32}
33
34// Add adds a parameter to this set and returns the numbered location used for it
35func (p *ParamSet) Add(param Param) int {

Callers 1

AddMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected