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

Function convertDropUserMappingStmt

internal/engine/postgresql/convert.go:1504–1513  ·  view source on GitHub ↗
(n *pg.DropUserMappingStmt)

Source from the content-addressed store, hash-verified

1502}
1503
1504func convertDropUserMappingStmt(n *pg.DropUserMappingStmt) *ast.DropUserMappingStmt {
1505 if n == nil {
1506 return nil
1507 }
1508 return &ast.DropUserMappingStmt{
1509 User: convertRoleSpec(n.User),
1510 Servername: makeString(n.Servername),
1511 MissingOk: n.MissingOk,
1512 }
1513}
1514
1515func convertDropdbStmt(n *pg.DropdbStmt) *ast.DropdbStmt {
1516 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 2

convertRoleSpecFunction · 0.85
makeStringFunction · 0.85

Tested by

no test coverage detected