MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_ddl_execute

Method test_ddl_execute

test/engine/test_ddlevents.py:831–838  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

829
830 @testing.requires.sqlite
831 def test_ddl_execute(self):
832 engine = create_engine("sqlite:///")
833 cx = engine.connect()
834 cx.begin()
835 ddl = DDL("SELECT 1")
836
837 r = cx.execute(ddl)
838 eq_(list(r), [(1,)])
839
840 def test_platform_escape(self):
841 """test the escaping of % characters in the DDL construct."""

Callers

nothing calls this directly

Calls 6

create_engineFunction · 0.90
eq_Function · 0.90
DDLClass · 0.85
connectMethod · 0.45
beginMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected