MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _connection_for_bind

Method _connection_for_bind

lib/sqlalchemy/orm/session.py:2143–2154  ·  view source on GitHub ↗
(
        self,
        engine: _SessionBind,
        execution_options: Optional[CoreExecuteOptionsParameter] = None,
        **kw: Any,
    )

Source from the content-addressed store, hash-verified

2141 )
2142
2143 def _connection_for_bind(
2144 self,
2145 engine: _SessionBind,
2146 execution_options: Optional[CoreExecuteOptionsParameter] = None,
2147 **kw: Any,
2148 ) -> Connection:
2149 TransactionalContext._trans_ctx_check(self)
2150
2151 trans = self._transaction
2152 if trans is None:
2153 trans = self._autobegin_t()
2154 return trans._connection_for_bind(engine, execution_options)
2155
2156 @overload
2157 def _execute_internal(

Callers 3

connectionMethod · 0.95
_execute_internalMethod · 0.95
_connection_for_bindMethod · 0.45

Calls 2

_autobegin_tMethod · 0.95
_trans_ctx_checkMethod · 0.80

Tested by

no test coverage detected