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

Function exec_sql

test/engine/test_logging.py:25–27  ·  view source on GitHub ↗
(engine, sql, *args, **kwargs)

Source from the content-addressed store, hash-verified

23
24
25def exec_sql(engine, sql, *args, **kwargs):
26 with engine.begin() as conn:
27 return conn.exec_driver_sql(sql, *args, **kwargs)
28
29
30class LogParamsTest(fixtures.TestBase):

Calls 2

beginMethod · 0.45
exec_driver_sqlMethod · 0.45

Tested by

no test coverage detected