MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / closed

Method closed

lib/sqlalchemy/engine/result.py:556–572  ·  view source on GitHub ↗

Return ``True`` if this :class:`_engine.Result` was **hard closed** by explicitly calling the :meth:`close` method. The attribute is **not** True if the :class:`_engine.Result` was only **soft closed**; a "soft close" is the style of close that takes place for exampl

(self)

Source from the content-addressed store, hash-verified

554
555 @property
556 def closed(self) -> bool:
557 """Return ``True`` if this :class:`_engine.Result` was **hard closed**
558 by explicitly calling the :meth:`close` method.
559
560 The attribute is **not** True if the :class:`_engine.Result` was only
561 **soft closed**; a "soft close" is the style of close that takes place
562 for example when the :class:`.CursorResult` is returned for a DML
563 only statement without RETURNING, or when all result rows are fetched.
564
565 .. seealso::
566
567 :attr:`.CursorResult.returns_rows` - attribute specific to
568 :class:`.CursorResult` which indicates if the result is one that
569 may return zero or more rows
570
571 """
572 raise NotImplementedError()
573
574 @_generative
575 def yield_per(self, num: int) -> Self:

Calls

no outgoing calls

Tested by

no test coverage detected