MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_prefix

Method test_prefix

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

Source from the content-addressed store, hash-verified

2335 )
2336
2337 def test_prefix(self):
2338 self.assert_compile(
2339 table1.select()
2340 .prefix_with("SQL_CALC_FOUND_ROWS")
2341 .prefix_with("SQL_SOME_WEIRD_MYSQL_THING"),
2342 "SELECT SQL_CALC_FOUND_ROWS SQL_SOME_WEIRD_MYSQL_THING "
2343 "mytable.myid, mytable.name, mytable.description FROM mytable",
2344 )
2345
2346 def test_prefix_dialect_specific(self):
2347 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