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

Method convertExistsSubqueryExpr

internal/engine/dolphin/convert.go:401–409  ·  view source on GitHub ↗
(n *pcast.ExistsSubqueryExpr)

Source from the content-addressed store, hash-verified

399}
400
401func (c *cc) convertExistsSubqueryExpr(n *pcast.ExistsSubqueryExpr) *ast.SubLink {
402 sublink := &ast.SubLink{
403 SubLinkType: ast.EXISTS_SUBLINK,
404 }
405 if n.Sel != nil {
406 sublink.Subselect = c.convert(n.Sel)
407 }
408 return sublink
409}
410
411func (c *cc) convertFieldList(n *pcast.FieldList) *ast.List {
412 fields := make([]ast.Node, len(n.Fields))

Callers 1

convertMethod · 0.95

Calls 1

convertMethod · 0.95

Tested by

no test coverage detected