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

Function convertCoalesceExpr

internal/engine/postgresql/convert.go:746–757  ·  view source on GitHub ↗
(n *pg.CoalesceExpr)

Source from the content-addressed store, hash-verified

744}
745
746func convertCoalesceExpr(n *pg.CoalesceExpr) *ast.CoalesceExpr {
747 if n == nil {
748 return nil
749 }
750 return &ast.CoalesceExpr{
751 Xpr: convertNode(n.Xpr),
752 Coalescetype: ast.Oid(n.Coalescetype),
753 Coalescecollid: ast.Oid(n.Coalescecollid),
754 Args: convertSlice(n.Args),
755 Location: int(n.Location),
756 }
757}
758
759func convertCoerceToDomain(n *pg.CoerceToDomain) *ast.CoerceToDomain {
760 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

OidTypeAlias · 0.92
convertNodeFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected