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

Function renderSubquery

pkg/formatter/render.go:1153–1165  ·  view source on GitHub ↗
(s *ast.SubqueryExpression, opts ast.FormatOptions)

Source from the content-addressed store, hash-verified

1151}
1152
1153func renderSubquery(s *ast.SubqueryExpression, opts ast.FormatOptions) string {
1154 if s == nil {
1155 return ""
1156 }
1157 f := newNodeFormatter(opts)
1158 sb := f.sb
1159
1160 sb.WriteString("(")
1161 sb.WriteString(FormatStatement(s.Subquery, opts))
1162 sb.WriteString(")")
1163
1164 return f.result()
1165}
1166
1167// ─── internal helpers ─────────────────────────────────────────────────────────
1168

Callers 1

FormatExpressionFunction · 0.85

Calls 3

newNodeFormatterFunction · 0.85
FormatStatementFunction · 0.85
resultMethod · 0.80

Tested by

no test coverage detected