MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / update_execution_options

Method update_execution_options

lib/sqlalchemy/engine/base.py:2991–3010  ·  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

2989 self._compiled_cache.clear()
2990
2991 def update_execution_options(self, **opt: Any) -> None:
2992 r"""Update the default execution_options dictionary
2993 of this :class:`_engine.Engine`.
2994
2995 The given keys/values in \**opt are added to the
2996 default execution options that will be used for
2997 all connections. The initial contents of this dictionary
2998 can be sent via the ``execution_options`` parameter
2999 to :func:`_sa.create_engine`.
3000
3001 .. seealso::
3002
3003 :meth:`_engine.Connection.execution_options`
3004
3005 :meth:`_engine.Engine.execution_options`
3006
3007 """
3008 self.dispatch.set_engine_execution_options(self, opt)
3009 self._execution_options = self._execution_options.union(opt)
3010 self.dialect.set_engine_execution_options(self, opt)
3011
3012 @overload
3013 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