MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / convertCreateCastStmt

Function convertCreateCastStmt

internal/engine/postgresql/convert.go:979–990  ·  view source on GitHub ↗
(n *pg.CreateCastStmt)

Source from the content-addressed store, hash-verified

977}
978
979func convertCreateCastStmt(n *pg.CreateCastStmt) *ast.CreateCastStmt {
980 if n == nil {
981 return nil
982 }
983 return &ast.CreateCastStmt{
984 Sourcetype: convertTypeName(n.Sourcetype),
985 Targettype: convertTypeName(n.Targettype),
986 Func: convertObjectWithArgs(n.Func),
987 Context: ast.CoercionContext(n.Context),
988 Inout: n.Inout,
989 }
990}
991
992func convertCreateConversionStmt(n *pg.CreateConversionStmt) *ast.CreateConversionStmt {
993 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

CoercionContextTypeAlias · 0.92
convertObjectWithArgsFunction · 0.85
convertTypeNameFunction · 0.70

Tested by

no test coverage detected