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

Function convertAlterObjectDependsStmt

internal/engine/postgresql/convert.go:343–353  ·  view source on GitHub ↗
(n *pg.AlterObjectDependsStmt)

Source from the content-addressed store, hash-verified

341}
342
343func convertAlterObjectDependsStmt(n *pg.AlterObjectDependsStmt) *ast.AlterObjectDependsStmt {
344 if n == nil {
345 return nil
346 }
347 return &ast.AlterObjectDependsStmt{
348 ObjectType: ast.ObjectType(n.ObjectType),
349 Relation: convertRangeVar(n.Relation),
350 Object: convertNode(n.Object),
351 Extname: convertString(n.Extname),
352 }
353}
354
355func convertAlterObjectSchemaStmt(n *pg.AlterObjectSchemaStmt) *ast.AlterObjectSchemaStmt {
356 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 4

ObjectTypeTypeAlias · 0.92
convertRangeVarFunction · 0.85
convertNodeFunction · 0.85
convertStringFunction · 0.85

Tested by

no test coverage detected