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

Function convertRoleSpec

internal/engine/postgresql/convert.go:2420–2429  ·  view source on GitHub ↗
(n *pg.RoleSpec)

Source from the content-addressed store, hash-verified

2418}
2419
2420func convertRoleSpec(n *pg.RoleSpec) *ast.RoleSpec {
2421 if n == nil {
2422 return nil
2423 }
2424 return &ast.RoleSpec{
2425 Roletype: ast.RoleSpecType(n.Roletype),
2426 Rolename: makeString(n.Rolename),
2427 Location: int(n.Location),
2428 }
2429}
2430
2431func convertRowCompareExpr(n *pg.RowCompareExpr) *ast.RowCompareExpr {
2432 if n == nil {

Callers 12

convertAlterOwnerStmtFunction · 0.85
convertAlterRoleSetStmtFunction · 0.85
convertAlterRoleStmtFunction · 0.85
convertAlterTableCmdFunction · 0.85
convertCreateSchemaStmtFunction · 0.85
convertGrantRoleStmtFunction · 0.85
convertReassignOwnedStmtFunction · 0.85
convertNodeFunction · 0.85

Calls 2

RoleSpecTypeTypeAlias · 0.92
makeStringFunction · 0.85

Tested by

no test coverage detected