MCPcopy Create free account
hub / github.com/PostHog/duckgres / getFuncCall

Method getFuncCall

transpiler/transform/version.go:185–193  ·  view source on GitHub ↗

getFuncCall extracts a FuncCall from a node if it is one

(node *pg_query.Node)

Source from the content-addressed store, hash-verified

183
184// getFuncCall extracts a FuncCall from a node if it is one
185func (t *VersionTransform) getFuncCall(node *pg_query.Node) *pg_query.FuncCall {
186 if node == nil {
187 return nil
188 }
189 if fc := node.GetFuncCall(); fc != nil {
190 return fc
191 }
192 return nil
193}
194
195// isVersionCall checks if a FuncCall is version() or pg_catalog.version()
196func (t *VersionTransform) isVersionCall(fc *pg_query.FuncCall) bool {

Callers 1

walkAndTransformMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected