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

Function convertAlterPolicyStmt

internal/engine/postgresql/convert.go:402–413  ·  view source on GitHub ↗
(n *pg.AlterPolicyStmt)

Source from the content-addressed store, hash-verified

400}
401
402func convertAlterPolicyStmt(n *pg.AlterPolicyStmt) *ast.AlterPolicyStmt {
403 if n == nil {
404 return nil
405 }
406 return &ast.AlterPolicyStmt{
407 PolicyName: makeString(n.PolicyName),
408 Table: convertRangeVar(n.Table),
409 Roles: convertSlice(n.Roles),
410 Qual: convertNode(n.Qual),
411 WithCheck: convertNode(n.WithCheck),
412 }
413}
414
415func convertAlterPublicationStmt(n *pg.AlterPublicationStmt) *ast.AlterPublicationStmt {
416 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 4

makeStringFunction · 0.85
convertRangeVarFunction · 0.85
convertSliceFunction · 0.85
convertNodeFunction · 0.85

Tested by

no test coverage detected