MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / connect

Method connect

lib/sqlalchemy/pool/base.py:438–446  ·  view source on GitHub ↗

Return a DBAPI connection from the pool. The connection is instrumented such that when its ``close()`` method is called, the connection will be returned to the pool.

(self)

Source from the content-addressed store, hash-verified

436 raise NotImplementedError()
437
438 def connect(self) -> PoolProxiedConnection:
439 """Return a DBAPI connection from the pool.
440
441 The connection is instrumented such that when its
442 ``close()`` method is called, the connection will be returned to
443 the pool.
444
445 """
446 return _ConnectionFairy._checkout(self)
447
448 def _return_conn(self, record: ConnectionPoolEntry) -> None:
449 """Given a _ConnectionRecord, return it to the :class:`_pool.Pool`.

Calls 1

_checkoutMethod · 0.80