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

Function convertCoerceToDomain

internal/engine/postgresql/convert.go:759–772  ·  view source on GitHub ↗
(n *pg.CoerceToDomain)

Source from the content-addressed store, hash-verified

757}
758
759func convertCoerceToDomain(n *pg.CoerceToDomain) *ast.CoerceToDomain {
760 if n == nil {
761 return nil
762 }
763 return &ast.CoerceToDomain{
764 Xpr: convertNode(n.Xpr),
765 Arg: convertNode(n.Arg),
766 Resulttype: ast.Oid(n.Resulttype),
767 Resulttypmod: n.Resulttypmod,
768 Resultcollid: ast.Oid(n.Resultcollid),
769 Coercionformat: ast.CoercionForm(n.Coercionformat),
770 Location: int(n.Location),
771 }
772}
773
774func convertCoerceToDomainValue(n *pg.CoerceToDomainValue) *ast.CoerceToDomainValue {
775 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