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

Method test_ddl_execute

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

Source from the content-addressed store, hash-verified

823
824 @testing.requires.sqlite
825 def test_ddl_execute(self):
826 engine = create_engine("sqlite:///")
827 cx = engine.connect()
828 cx.begin()
829 ddl = DDL("SELECT 1")
830
831 r = cx.execute(ddl)
832 eq_(list(r), [(1,)])
833
834 def test_platform_escape(self):
835 """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