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

Function convertCreateOpClassStmt

internal/engine/postgresql/convert.go:1120–1132  ·  view source on GitHub ↗
(n *pg.CreateOpClassStmt)

Source from the content-addressed store, hash-verified

1118}
1119
1120func convertCreateOpClassStmt(n *pg.CreateOpClassStmt) *ast.CreateOpClassStmt {
1121 if n == nil {
1122 return nil
1123 }
1124 return &ast.CreateOpClassStmt{
1125 Opclassname: convertSlice(n.Opclassname),
1126 Opfamilyname: convertSlice(n.Opfamilyname),
1127 Amname: makeString(n.Amname),
1128 Datatype: convertTypeName(n.Datatype),
1129 Items: convertSlice(n.Items),
1130 IsDefault: n.IsDefault,
1131 }
1132}
1133
1134func convertCreateOpFamilyStmt(n *pg.CreateOpFamilyStmt) *ast.CreateOpFamilyStmt {
1135 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

convertSliceFunction · 0.85
makeStringFunction · 0.85
convertTypeNameFunction · 0.70

Tested by

no test coverage detected