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

Function convertCoerceViaIO

internal/engine/postgresql/convert.go:787–799  ·  view source on GitHub ↗
(n *pg.CoerceViaIO)

Source from the content-addressed store, hash-verified

785}
786
787func convertCoerceViaIO(n *pg.CoerceViaIO) *ast.CoerceViaIO {
788 if n == nil {
789 return nil
790 }
791 return &ast.CoerceViaIO{
792 Xpr: convertNode(n.Xpr),
793 Arg: convertNode(n.Arg),
794 Resulttype: ast.Oid(n.Resulttype),
795 Resultcollid: ast.Oid(n.Resultcollid),
796 Coerceformat: ast.CoercionForm(n.Coerceformat),
797 Location: int(n.Location),
798 }
799}
800
801func convertCollateClause(n *pg.CollateClause) *ast.CollateClause {
802 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