MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / renderExists

Function renderExists

pkg/formatter/render.go:1138–1151  ·  view source on GitHub ↗
(e *ast.ExistsExpression, opts ast.FormatOptions)

Source from the content-addressed store, hash-verified

1136}
1137
1138func renderExists(e *ast.ExistsExpression, opts ast.FormatOptions) string {
1139 if e == nil {
1140 return ""
1141 }
1142 f := newNodeFormatter(opts)
1143 sb := f.sb
1144
1145 sb.WriteString(f.kw("EXISTS"))
1146 sb.WriteString(" (")
1147 sb.WriteString(FormatStatement(e.Subquery, opts))
1148 sb.WriteString(")")
1149
1150 return f.result()
1151}
1152
1153func renderSubquery(s *ast.SubqueryExpression, opts ast.FormatOptions) string {
1154 if s == nil {

Callers 1

FormatExpressionFunction · 0.85

Calls 4

newNodeFormatterFunction · 0.85
FormatStatementFunction · 0.85
kwMethod · 0.80
resultMethod · 0.80

Tested by

no test coverage detected