MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / slow_first_connect

Method slow_first_connect

test/engine/test_pool.py:977–979  ·  view source on GitHub ↗
(dbapi_con, rec)

Source from the content-addressed store, hash-verified

975
976 @event.listens_for(pool, "first_connect")
977 def slow_first_connect(dbapi_con, rec):
978 time.sleep(1)
979 evt.first_connect()
980
981 @event.listens_for(pool, "connect")
982 def on_connect(dbapi_con, rec):

Callers

nothing calls this directly

Calls 1

first_connectMethod · 0.45

Tested by

no test coverage detected