MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_prefix

Method test_prefix

test/sql/test_compiler.py:2313–2320  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2311 )
2312
2313 def test_prefix(self):
2314 self.assert_compile(
2315 table1.select()
2316 .prefix_with("SQL_CALC_FOUND_ROWS")
2317 .prefix_with("SQL_SOME_WEIRD_MYSQL_THING"),
2318 "SELECT SQL_CALC_FOUND_ROWS SQL_SOME_WEIRD_MYSQL_THING "
2319 "mytable.myid, mytable.name, mytable.description FROM mytable",
2320 )
2321
2322 def test_prefix_dialect_specific(self):
2323 self.assert_compile(

Callers

nothing calls this directly

Calls 3

assert_compileMethod · 0.80
prefix_withMethod · 0.80
selectMethod · 0.45

Tested by

no test coverage detected