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

Function convertAlterTableStmt

internal/engine/postgresql/convert.go:549–559  ·  view source on GitHub ↗
(n *pg.AlterTableStmt)

Source from the content-addressed store, hash-verified

547}
548
549func convertAlterTableStmt(n *pg.AlterTableStmt) *ast.AlterTableStmt {
550 if n == nil {
551 return nil
552 }
553 return &ast.AlterTableStmt{
554 Relation: convertRangeVar(n.Relation),
555 Cmds: convertSlice(n.Cmds),
556 Relkind: ast.ObjectType(n.Objtype),
557 MissingOk: n.MissingOk,
558 }
559}
560
561func convertAlterUserMappingStmt(n *pg.AlterUserMappingStmt) *ast.AlterUserMappingStmt {
562 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

ObjectTypeTypeAlias · 0.92
convertRangeVarFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected