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

Function convertCreateOpClassItem

internal/engine/postgresql/convert.go:1106–1118  ·  view source on GitHub ↗
(n *pg.CreateOpClassItem)

Source from the content-addressed store, hash-verified

1104}
1105
1106func convertCreateOpClassItem(n *pg.CreateOpClassItem) *ast.CreateOpClassItem {
1107 if n == nil {
1108 return nil
1109 }
1110 return &ast.CreateOpClassItem{
1111 Itemtype: int(n.Itemtype),
1112 Name: convertObjectWithArgs(n.Name),
1113 Number: int(n.Number),
1114 OrderFamily: convertSlice(n.OrderFamily),
1115 ClassArgs: convertSlice(n.ClassArgs),
1116 Storedtype: convertTypeName(n.Storedtype),
1117 }
1118}
1119
1120func convertCreateOpClassStmt(n *pg.CreateOpClassStmt) *ast.CreateOpClassStmt {
1121 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

convertObjectWithArgsFunction · 0.85
convertSliceFunction · 0.85
convertTypeNameFunction · 0.70

Tested by

no test coverage detected