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

Method update_execution_options

lib/sqlalchemy/engine/base.py:3024–3043  ·  view source on GitHub ↗

r"""Update the default execution_options dictionary of this :class:`_engine.Engine`. The given keys/values in \**opt are added to the default execution options that will be used for all connections. The initial contents of this dictionary can be sent via the

(self, **opt: Any)

Source from the content-addressed store, hash-verified

3022 self._compiled_cache.clear()
3023
3024 def update_execution_options(self, **opt: Any) -> None:
3025 r"""Update the default execution_options dictionary
3026 of this :class:`_engine.Engine`.
3027
3028 The given keys/values in \**opt are added to the
3029 default execution options that will be used for
3030 all connections. The initial contents of this dictionary
3031 can be sent via the ``execution_options`` parameter
3032 to :func:`_sa.create_engine`.
3033
3034 .. seealso::
3035
3036 :meth:`_engine.Connection.execution_options`
3037
3038 :meth:`_engine.Engine.execution_options`
3039
3040 """
3041 self.dispatch.set_engine_execution_options(self, opt)
3042 self._execution_options = self._execution_options.union(opt)
3043 self.dialect.set_engine_execution_options(self, opt)
3044
3045 @overload
3046 def execution_options(

Callers 15

__init__Method · 0.95
do_orm_executeMethod · 0.45
goMethod · 0.45
oneMethod · 0.45
twoMethod · 0.45
threeMethod · 0.45
fourMethod · 0.45

Calls 2

unionMethod · 0.45

Tested by 12

do_orm_executeMethod · 0.36
goMethod · 0.36
oneMethod · 0.36
twoMethod · 0.36
threeMethod · 0.36
fourMethod · 0.36
addedMethod · 0.36
fiveMethod · 0.36
do_orm_executeMethod · 0.36