MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / start

Method start

lib/sqlalchemy/ext/asyncio/engine.py:271–283  ·  view source on GitHub ↗

Start this :class:`_asyncio.AsyncConnection` object's context outside of using a Python ``with:`` block.

(
        self, is_ctxmanager: bool = False  # noqa: U100
    )

Source from the content-addressed store, hash-verified

269 )
270
271 async def start(
272 self, is_ctxmanager: bool = False # noqa: U100
273 ) -> AsyncConnection:
274 """Start this :class:`_asyncio.AsyncConnection` object's context
275 outside of using a Python ``with:`` block.
276
277 """
278 if self.sync_connection:
279 raise exc.InvalidRequestError("connection is already started")
280 self.sync_connection = self._assign_proxied(
281 await greenlet_spawn(self.sync_engine.connect)
282 )
283 return self
284
285 @property
286 def connection(self) -> NoReturn:

Callers 1

__await__Method · 0.95

Calls 2

greenlet_spawnFunction · 0.85
_assign_proxiedMethod · 0.80

Tested by

no test coverage detected