MCPcopy
hub / github.com/sqlc-dev/sqlc / convertCurrentOfExpr

Function convertCurrentOfExpr

internal/engine/postgresql/convert.go:1358–1368  ·  view source on GitHub ↗
(n *pg.CurrentOfExpr)

Source from the content-addressed store, hash-verified

1356}
1357
1358func convertCurrentOfExpr(n *pg.CurrentOfExpr) *ast.CurrentOfExpr {
1359 if n == nil {
1360 return nil
1361 }
1362 return &ast.CurrentOfExpr{
1363 Xpr: convertNode(n.Xpr),
1364 Cvarno: ast.Index(n.Cvarno),
1365 CursorName: makeString(n.CursorName),
1366 CursorParam: int(n.CursorParam),
1367 }
1368}
1369
1370func convertDeallocateStmt(n *pg.DeallocateStmt) *ast.DeallocateStmt {
1371 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

IndexTypeAlias · 0.92
convertNodeFunction · 0.85
makeStringFunction · 0.85

Tested by

no test coverage detected