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

Function IsNamedParamFunc

internal/engine/postgresql/utils.go:32–35  ·  view source on GitHub ↗
(node *nodes.Node)

Source from the content-addressed store, hash-verified

30}
31
32func IsNamedParamFunc(node *nodes.Node) bool {
33 fun, ok := node.Node.(*nodes.Node_FuncCall)
34 return ok && joinNodes(fun.FuncCall.Funcname, ".") == "sqlc.arg"
35}
36
37func IsNamedParamSign(node *nodes.Node) bool {
38 expr, ok := node.Node.(*nodes.Node_AExpr)

Callers

nothing calls this directly

Calls 1

joinNodesFunction · 0.85

Tested by

no test coverage detected