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

Method begin

test/engine/test_execute.py:1827–1829  ·  view source on GitHub ↗
(connection)

Source from the content-addressed store, hash-verified

1825
1826 @event.listens_for(e1, "begin")
1827 def begin(connection):
1828 result = connection.execute(select(1)).scalar()
1829 canary.got_result(result)
1830
1831 with e1.connect() as conn:
1832 conn.execute(select(1)).scalar()

Calls 3

selectFunction · 0.90
scalarMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected