reconfigure the :class:`.sessionmaker` used by this :class:`.scoped_session`. See :meth:`.sessionmaker.configure`.
(self, **kwargs: Any)
| 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. |