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

Function IsNamedParamSign

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

Source from the content-addressed store, hash-verified

35}
36
37func IsNamedParamSign(node *nodes.Node) bool {
38 expr, ok := node.Node.(*nodes.Node_AExpr)
39 return ok && joinNodes(expr.AExpr.Name, ".") == "@"
40}
41
42func makeByte(s string) byte {
43 var b byte

Callers

nothing calls this directly

Calls 1

joinNodesFunction · 0.85

Tested by

no test coverage detected