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

Method configure

lib/sqlalchemy/ext/asyncio/session.py:1823–1833  ·  view source on GitHub ↗

(Re)configure the arguments for this async_sessionmaker. e.g.:: AsyncSession = async_sessionmaker(some_engine) AsyncSession.configure(bind=create_async_engine("sqlite+aiosqlite://"))

(self, **new_kw: Any)

Source from the content-addressed store, hash-verified

1821 return self.class_(**local_kw)
1822
1823 def configure(self, **new_kw: Any) -> None:
1824 """(Re)configure the arguments for this async_sessionmaker.
1825
1826 e.g.::
1827
1828 AsyncSession = async_sessionmaker(some_engine)
1829
1830 AsyncSession.configure(bind=create_async_engine("sqlite+aiosqlite://"))
1831 """ # noqa E501
1832
1833 self.kw.update(new_kw)
1834
1835 def __repr__(self) -> str:
1836 return "%s(class_=%r, %s)" % (

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected