MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / configure

Method configure

lib/sqlalchemy/ext/asyncio/scoping.py:197–212  ·  view source on GitHub ↗

reconfigure the :class:`.sessionmaker` used by this :class:`.scoped_session`. See :meth:`.sessionmaker.configure`.

(self, **kwargs: Any)

Source from the content-addressed store, hash-verified

195 return sess
196
197 def configure(self, **kwargs: Any) -> None:
198 """reconfigure the :class:`.sessionmaker` used by this
199 :class:`.scoped_session`.
200
201 See :meth:`.sessionmaker.configure`.
202
203 """
204
205 if self.registry.has():
206 warn(
207 "At least one scoped session is already present. "
208 " configure() can not affect sessions that have "
209 "already been created."
210 )
211
212 self.session_factory.configure(**kwargs)
213
214 async def remove(self) -> None:
215 """Dispose of the current :class:`.AsyncSession`, if present.

Callers

nothing calls this directly

Calls 2

warnFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected