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

Function convertAlterUserMappingStmt

internal/engine/postgresql/convert.go:561–570  ·  view source on GitHub ↗
(n *pg.AlterUserMappingStmt)

Source from the content-addressed store, hash-verified

559}
560
561func convertAlterUserMappingStmt(n *pg.AlterUserMappingStmt) *ast.AlterUserMappingStmt {
562 if n == nil {
563 return nil
564 }
565 return &ast.AlterUserMappingStmt{
566 User: convertRoleSpec(n.User),
567 Servername: makeString(n.Servername),
568 Options: convertSlice(n.Options),
569 }
570}
571
572func convertAlternativeSubPlan(n *pg.AlternativeSubPlan) *ast.AlternativeSubPlan {
573 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

convertRoleSpecFunction · 0.85
makeStringFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected