MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / get_select_precolumns

Method get_select_precolumns

test/sql/test_compiler.py:547–557  ·  view source on GitHub ↗
(self, select, **kw)

Source from the content-addressed store, hash-verified

545
546 class MyCompiler(compiler.SQLCompiler):
547 def get_select_precolumns(self, select, **kw):
548 result = ""
549 if select._limit:
550 result += "FIRST %s " % self.process(
551 literal(select._limit), **kw
552 )
553 if select._offset:
554 result += "SKIP %s " % self.process(
555 literal(select._offset), **kw
556 )
557 return result
558
559 def limit_clause(self, select, **kw):
560 return ""

Callers

nothing calls this directly

Calls 2

literalFunction · 0.90
processMethod · 0.45

Tested by

no test coverage detected