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

Method slow_first_connect

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

first_connectMethod · 0.45

Tested by

no test coverage detected