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

Method closed

lib/sqlalchemy/engine/result.py:1022–1038  ·  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

1020
1021 @property
1022 def closed(self) -> bool:
1023 """Return ``True`` if this :class:`_engine.Result` was **hard closed**
1024 by explicitly calling the :meth:`close` method.
1025
1026 The attribute is **not** True if the :class:`_engine.Result` was only
1027 **soft closed**; a "soft close" is the style of close that takes place
1028 for example when the :class:`.CursorResult` is returned for a DML
1029 only statement without RETURNING, or when all result rows are fetched.
1030
1031 .. seealso::
1032
1033 :attr:`.CursorResult.returns_rows` - attribute specific to
1034 :class:`.CursorResult` which indicates if the result is one that
1035 may return zero or more rows
1036
1037 """
1038 raise NotImplementedError()
1039
1040 @_generative
1041 def yield_per(self, num: int) -> Self:

Callers 15

table_ddl_if_existsMethod · 0.45
index_ddl_if_existsMethod · 0.45
uuid_data_typeMethod · 0.45
non_updating_cascadeMethod · 0.45
deferrable_fksMethod · 0.45
nullsorderingMethod · 0.45
intersectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected