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

Function convertTargetEntry

internal/engine/postgresql/convert.go:2714–2728  ·  view source on GitHub ↗
(n *pg.TargetEntry)

Source from the content-addressed store, hash-verified

2712}
2713
2714func convertTargetEntry(n *pg.TargetEntry) *ast.TargetEntry {
2715 if n == nil {
2716 return nil
2717 }
2718 return &ast.TargetEntry{
2719 Xpr: convertNode(n.Xpr),
2720 Expr: convertNode(n.Expr),
2721 Resno: ast.AttrNumber(n.Resno),
2722 Resname: makeString(n.Resname),
2723 Ressortgroupref: ast.Index(n.Ressortgroupref),
2724 Resorigtbl: ast.Oid(n.Resorigtbl),
2725 Resorigcol: ast.AttrNumber(n.Resorigcol),
2726 Resjunk: n.Resjunk,
2727 }
2728}
2729
2730func convertTransactionStmt(n *pg.TransactionStmt) *ast.TransactionStmt {
2731 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 5

AttrNumberTypeAlias · 0.92
IndexTypeAlias · 0.92
OidTypeAlias · 0.92
convertNodeFunction · 0.85
makeStringFunction · 0.85

Tested by

no test coverage detected