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

Function convertArrayCoerceExpr

internal/engine/postgresql/convert.go:582–595  ·  view source on GitHub ↗
(n *pg.ArrayCoerceExpr)

Source from the content-addressed store, hash-verified

580}
581
582func convertArrayCoerceExpr(n *pg.ArrayCoerceExpr) *ast.ArrayCoerceExpr {
583 if n == nil {
584 return nil
585 }
586 return &ast.ArrayCoerceExpr{
587 Xpr: convertNode(n.Xpr),
588 Arg: convertNode(n.Arg),
589 Resulttype: ast.Oid(n.Resulttype),
590 Resulttypmod: n.Resulttypmod,
591 Resultcollid: ast.Oid(n.Resultcollid),
592 Coerceformat: ast.CoercionForm(n.Coerceformat),
593 Location: int(n.Location),
594 }
595}
596
597func convertArrayExpr(n *pg.ArrayExpr) *ast.ArrayExpr {
598 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

OidTypeAlias · 0.92
CoercionFormTypeAlias · 0.92
convertNodeFunction · 0.85

Tested by

no test coverage detected