MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / convertAlterRoleSetStmt

Function convertAlterRoleSetStmt

internal/engine/postgresql/convert.go:428–437  ·  view source on GitHub ↗
(n *pg.AlterRoleSetStmt)

Source from the content-addressed store, hash-verified

426}
427
428func convertAlterRoleSetStmt(n *pg.AlterRoleSetStmt) *ast.AlterRoleSetStmt {
429 if n == nil {
430 return nil
431 }
432 return &ast.AlterRoleSetStmt{
433 Role: convertRoleSpec(n.Role),
434 Database: makeString(n.Database),
435 Setstmt: convertVariableSetStmt(n.Setstmt),
436 }
437}
438
439func convertAlterRoleStmt(n *pg.AlterRoleStmt) *ast.AlterRoleStmt {
440 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

convertRoleSpecFunction · 0.85
makeStringFunction · 0.85
convertVariableSetStmtFunction · 0.85

Tested by

no test coverage detected