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

Function isEmbed

internal/sql/rewrite/embeds.go:79–91  ·  view source on GitHub ↗
(node ast.Node)

Source from the content-addressed store, hash-verified

77}
78
79func isEmbed(node ast.Node) bool {
80 call, ok := node.(*ast.FuncCall)
81 if !ok {
82 return false
83 }
84
85 if call.Func == nil {
86 return false
87 }
88
89 isValid := call.Func.Schema == "sqlc" && call.Func.Name == "embed"
90 return isValid
91}

Callers 1

EmbedsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected