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

Function convertCreateUserMappingStmt

internal/engine/postgresql/convert.go:1336–1346  ·  view source on GitHub ↗
(n *pg.CreateUserMappingStmt)

Source from the content-addressed store, hash-verified

1334}
1335
1336func convertCreateUserMappingStmt(n *pg.CreateUserMappingStmt) *ast.CreateUserMappingStmt {
1337 if n == nil {
1338 return nil
1339 }
1340 return &ast.CreateUserMappingStmt{
1341 User: convertRoleSpec(n.User),
1342 Servername: makeString(n.Servername),
1343 IfNotExists: n.IfNotExists,
1344 Options: convertSlice(n.Options),
1345 }
1346}
1347
1348func convertCreatedbStmt(n *pg.CreatedbStmt) *ast.CreatedbStmt {
1349 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