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

Function convertTypeName

internal/engine/postgresql/convert.go:2774–2788  ·  view source on GitHub ↗
(n *pg.TypeName)

Source from the content-addressed store, hash-verified

2772}
2773
2774func convertTypeName(n *pg.TypeName) *ast.TypeName {
2775 if n == nil {
2776 return nil
2777 }
2778 return &ast.TypeName{
2779 Names: convertSlice(n.Names),
2780 TypeOid: ast.Oid(n.TypeOid),
2781 Setof: n.Setof,
2782 PctType: n.PctType,
2783 Typmods: convertSlice(n.Typmods),
2784 Typemod: n.Typemod,
2785 ArrayBounds: convertSlice(n.ArrayBounds),
2786 Location: int(n.Location),
2787 }
2788}
2789
2790func convertUnlistenStmt(n *pg.UnlistenStmt) *ast.UnlistenStmt {
2791 if n == nil {

Callers 13

convertColumnDefFunction · 0.70
convertCreateCastStmtFunction · 0.70
convertCreateDomainStmtFunction · 0.70
convertCreateOpClassItemFunction · 0.70
convertCreateOpClassStmtFunction · 0.70
convertCreateStmtFunction · 0.70
convertFunctionParameterFunction · 0.70
convertRangeTableFuncColFunction · 0.70
convertTypeCastFunction · 0.70
convertXmlSerializeFunction · 0.70

Calls 2

OidTypeAlias · 0.92
convertSliceFunction · 0.85

Tested by

no test coverage detected