MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / MyCompiler

Class MyCompiler

test/sql/test_compiler.py:546–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544 s2 = select(s1).limit(10)
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 ""
561
562 dialect = default.DefaultDialect()
563 dialect.statement_compiler = MyCompiler

Callers 1

test_nested_apiMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_nested_apiMethod · 0.56