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

Function convertCreateAmStmt

internal/engine/postgresql/convert.go:968–977  ·  view source on GitHub ↗
(n *pg.CreateAmStmt)

Source from the content-addressed store, hash-verified

966}
967
968func convertCreateAmStmt(n *pg.CreateAmStmt) *ast.CreateAmStmt {
969 if n == nil {
970 return nil
971 }
972 return &ast.CreateAmStmt{
973 Amname: makeString(n.Amname),
974 HandlerName: convertSlice(n.HandlerName),
975 Amtype: makeByte(n.Amtype),
976 }
977}
978
979func convertCreateCastStmt(n *pg.CreateCastStmt) *ast.CreateCastStmt {
980 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

makeStringFunction · 0.85
convertSliceFunction · 0.85
makeByteFunction · 0.85

Tested by

no test coverage detected