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

Function convertAlterOwnerStmt

internal/engine/postgresql/convert.go:390–400  ·  view source on GitHub ↗
(n *pg.AlterOwnerStmt)

Source from the content-addressed store, hash-verified

388}
389
390func convertAlterOwnerStmt(n *pg.AlterOwnerStmt) *ast.AlterOwnerStmt {
391 if n == nil {
392 return nil
393 }
394 return &ast.AlterOwnerStmt{
395 ObjectType: ast.ObjectType(n.ObjectType),
396 Relation: convertRangeVar(n.Relation),
397 Object: convertNode(n.Object),
398 Newowner: convertRoleSpec(n.Newowner),
399 }
400}
401
402func convertAlterPolicyStmt(n *pg.AlterPolicyStmt) *ast.AlterPolicyStmt {
403 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 4

ObjectTypeTypeAlias · 0.92
convertRangeVarFunction · 0.85
convertNodeFunction · 0.85
convertRoleSpecFunction · 0.85

Tested by

no test coverage detected