MCPcopy Index your code
hub / github.com/geldata/gel / _select

Method _select

edb/pgsql/codegen.py:303–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301 # that look good.
302 # Otherwise we emit real SQL.
303 def _select() -> None:
304 self.write('SELECT')
305 if node.distinct_clause:
306 self.write(' DISTINCT')
307 if len(node.distinct_clause) > 1 or not isinstance(
308 node.distinct_clause[0], pgast.Star
309 ):
310 self.write(' ON (')
311 self.visit_list(node.distinct_clause, newlines=False)
312 self.write(')')
313 if self.pretty:
314 self.write('/*', repr(node), '*/')
315 self.new_lines = 1
316
317 if node.op:
318 # Upper level set operation node (UNION/INTERSECT)

Callers

nothing calls this directly

Calls 2

writeMethod · 0.95
visit_listMethod · 0.80

Tested by

no test coverage detected