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

Function convertGrantRoleStmt

internal/engine/postgresql/convert.go:1657–1668  ·  view source on GitHub ↗
(n *pg.GrantRoleStmt)

Source from the content-addressed store, hash-verified

1655}
1656
1657func convertGrantRoleStmt(n *pg.GrantRoleStmt) *ast.GrantRoleStmt {
1658 if n == nil {
1659 return nil
1660 }
1661 return &ast.GrantRoleStmt{
1662 GrantedRoles: convertSlice(n.GrantedRoles),
1663 GranteeRoles: convertSlice(n.GranteeRoles),
1664 IsGrant: n.IsGrant,
1665 Grantor: convertRoleSpec(n.Grantor),
1666 Behavior: ast.DropBehavior(n.Behavior),
1667 }
1668}
1669
1670func convertGrantStmt(n *pg.GrantStmt) *ast.GrantStmt {
1671 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

DropBehaviorTypeAlias · 0.92
convertSliceFunction · 0.85
convertRoleSpecFunction · 0.85

Tested by

no test coverage detected