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

Function convertAlterFunctionStmt

internal/engine/postgresql/convert.go:333–341  ·  view source on GitHub ↗
(n *pg.AlterFunctionStmt)

Source from the content-addressed store, hash-verified

331}
332
333func convertAlterFunctionStmt(n *pg.AlterFunctionStmt) *ast.AlterFunctionStmt {
334 if n == nil {
335 return nil
336 }
337 return &ast.AlterFunctionStmt{
338 Func: convertObjectWithArgs(n.Func),
339 Actions: convertSlice(n.Actions),
340 }
341}
342
343func convertAlterObjectDependsStmt(n *pg.AlterObjectDependsStmt) *ast.AlterObjectDependsStmt {
344 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 2

convertObjectWithArgsFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected